write a java program that will output the following numbers:

float

New member
1,2,4,7,11,16,32,47,56,66. pls. answer..t.y? pls. answer my question..
i really dont know how to do it..
hmmmmmp...
thanks..
 
I think you meant:
1, 2, 4, 7, 11, 16, 22, etc.
If this is the pattern then you start with 1. To get the next terms add 1, then add 2, then 3, etc. Now write the program.
 
Back
Top