12,635,246 members (22,870 online)
Rate this:
See more:
How do I calculate the following mathematical series 1 2 3 5 8 13 21 34 55
in vb.net language ??????
I mean how can i preview this values in a messagebox
Posted 7-Dec-12 12:43pm
Updated 7-Dec-12 13:51pm
v2
richcb 7-Dec-12 17:47pm

You are going to need to provide more details. Use the "Improve Question" widget to elaborate on what you need/want to do.

Do you understand that giving and example does not define the problem?
--SA

Rate this:

## Solution 1

I see a pattern there (namely kn+1 = kn + kn-1), you should exploit it.
However, if my hypothesis is correct, `50` is not part of the series.
mazen albarakani 7-Dec-12 18:26pm

Well, if we assume that the text string to 55 not to 50, what is the appropriate code to solve this problem

You never defined the problem formally, so what do you want? Going to ask another follow-up question to every hypothesis?
--SA
CPallini 7-Dec-12 18:54pm

Lazy, lazy man:
k0=1
k1=2
Do
k2=k0+k1
k0=k1
k1=k2
Loop While(k2<>55)

The try is good enough, a 5. I would prefer not asking before OP defines everything correctly enough.
--SA
mazen albarakani 7-Dec-12 18:53pm

Mr kryukov
I mean how can i preview this values in a messagebox ? that's it
mazen albarakani 7-Dec-12 19:01pm

thanks allot Mr Pallin
CPallini 7-Dec-12 19:10pm

You are welcome.

Top Experts
Last 24hrsThis month
 Richard MacCutchan 140 CPallini 125 ppolymorphe 105 OriginalGriff 89 Jon McKee 75
 OriginalGriff 2,413 ppolymorphe 1,371 Peter Leow 1,064 CPallini 806 John Simmons / outlaw programmer 770