12,360,217 members (60,669 online)
Rate this:
See more:
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

Incomprehensible...

Rate this:

## 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
a=b
b=fs
fs = a + b

Done! Try!
Rate this:

## 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 ......

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

Solution
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
Console.WriteLine(n1);
while (n2 < arr1[2])
{
Console.WriteLine(n2);
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. :)

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:

## 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.

Top Experts
Last 24hrsThis month
 Richard MacCutchan 300 OriginalGriff 233 Dave Kreskowiak 205 Karthik Bangalore 180 RyanDev 115
 Richard MacCutchan 260 OriginalGriff 233 Dave Kreskowiak 205 Karthik Bangalore 180 RyanDev 115

Web02 | 2.8.160621.1 | Last Updated 16 Oct 2010