Click here to Skip to main content
Sign Up to vote bad
good
See more: VB.NET
Please
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 - 11:43
Edited 7 Dec '12 - 12:51

Comments
richcb - 7 Dec '12 - 17:47
You are going to need to provide more details. Use the "Improve Question" widget to elaborate on what you need/want to do.
Sergey Alexandrovich Kryukov - 7 Dec '12 - 18:40
Do you understand that giving and example does not define the problem? --SA

1 solution

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.
  Permalink  
Comments
mazen albarakani - 7 Dec '12 - 18:26
Well, if we assume that the text string to 55 not to 50, what is the appropriate code to solve this problem
Sergey Alexandrovich Kryukov - 7 Dec '12 - 18:42
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:54
Lazy, lazy man: k0=1 k1=2 Do k2=k0+k1 k0=k1 k1=k2 Loop While(k2<>55)
Sergey Alexandrovich Kryukov - 7 Dec '12 - 18:43
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:53
Mr kryukov I mean how can i preview this values in a messagebox ? that's it
mazen albarakani - 7 Dec '12 - 19:01
thanks allot Mr Pallin
CPallini - 7 Dec '12 - 19:10
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
Your Filters
Interested
Ignored
     
0 OriginalGriff 333
1 Sergey Alexandrovich Kryukov 140
2 Mohammed Hameed 123
3 Santhosh G_ 113
4 Ron Beyer 74
0 Sergey Alexandrovich Kryukov 8,266
1 OriginalGriff 6,516
2 CPallini 3,533
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 7 Dec 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid