Click here to Skip to main content
13,291,084 members (68,199 online)
Rate this:
Please Sign up or sign in to vote.
See more:
How do I calculate the following mathematical series 1 2 3 5 8 13 21 34 55
in language ??????
I mean how can i preview this values in a messagebox
Posted 7-Dec-12 12:43pm
Updated 7-Dec-12 13:51pm
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?

1 solution

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

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?
The try is good enough, a 5. I would prefer not asking before OP defines everything correctly enough.
mazen albarakani 7-Dec-12 18:53pm
Mr kryukov
I mean how can i preview this values in a messagebox ? that's it
CPallini 7-Dec-12 18:54pm
Lazy, lazy man:
Loop While(k2<>55)
mazen albarakani 7-Dec-12 19:01pm
thanks allot Mr Pallin
CPallini 7-Dec-12 19:10pm
You are welcome.

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 |
Web02 | 2.8.171207.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2017
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