Click here to Skip to main content
12,360,217 members (60,669 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#
pleaseeeeeeee help
fibonacci with 3araye
Posted 15-Oct-10 20:47pm
OriginalGriff 16-Oct-10 3:27am
What is your problem? Where are you having difficulties?
BTW: "Please" has a total of two "e"s. Sentences start with a capital letter. Punctuation is used to separate sentences. Sentences contain at least a single subject and predicate. This should have been explained to you early in your school life. Ignoring all this makes you look like a whining child.
Sandeep Mewara 16-Oct-10 3:45am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

First of all, no effort in solving it.. then no effort in framing your question either!!!

Here is what is expected by enquirers:
1. TRY first what you want to do!
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.

BTW, for fibonacci, why do you need 3 array? array?
a = 0
b = 1
fs = a+b
fs = a + b

Done! Try!
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

Before Solving Fibonacci Series you need to know what is Fibonacci Series.
Fibonacci Series is a numerical sequence, in which first two number is equal and each remaining number is equal to the previous two number.
Example :-
1 1 2 3 5 8 13 21 34 ......

Now moving to your question
as i getting your question you are looking for a Fibonacci series for array with 3 element.

using System;
using System.Collections.Generic;
using System.Text;
namespace Fibonacci_Series
    class Program
        static void Main(string[] args)
            int[] arr1 = { 1, 2, 100 }; // Array with 3 element

           int n1, n2;
           n1 = n2 = arr1[0]; // n1 and n2 have value arr1[0] which is 1
            while (n2 < arr1[2])
                n2 += n1;    // Using Arithmetic operator
                n1 = n2 - n1;
Henry Minute 16-Oct-10 18:40pm
It's really excellent that you want to help and your solution is a good one, but you really aren't helping the OP by spoon feeding him like this. Keep helping those that deserve it though. :)
MDNadeemAkhter 17-Oct-10 1:01am
Hey good code i also looking for that answer.
Sandeep Mewara 17-Oct-10 1:40am
I second Henry's comment. :)
RaviRanjankr 18-Oct-10 0:33am
thanks for suggestion i will try to follow it.
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

First of all try it yourself It's just a child play to generate it...
If you face problems then specify Ur area of problem.
Cool | :cool: Cool | :cool: Cool | :cool: Cool | :cool:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 16 Oct 2010
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100