Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
pleaseeeeeeee help
fibonacci with 3araye
Posted 15-Oct-10 20:47pm
OriginalGriff at 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 at 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 at 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 at 17-Oct-10 1:01am
Hey good code i also looking for that answer.
Sandeep Mewara at 17-Oct-10 1:40am
I second Henry's comment. :)
RaviRanjankr at 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
Your Filters
0 Shai Vashdi 1,448
1 Tadit Dash 270
2 OriginalGriff 223
3 Sergey Alexandrovich Kryukov 215
4 Peter Leow 180
0 Sergey Alexandrovich Kryukov 9,440
1 OriginalGriff 5,618
2 Peter Leow 4,280
3 Maciej Los 3,540
4 Abhinav S 3,363

Advertise | Privacy | Mobile
Web03 | 2.8.140415.2 | Last Updated 16 Oct 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid