Computer Science, asked by amrit321123, 10 months ago

Write a program in java for series 0,1,1,2,4,8,16,32

Answers

Answered by sejil
0

Answer:

int a = 0 b = 1 , c = a + b;

System. out. prin(a);

System. out. prin(b);

System. out. prin(c);

while (a<=32)

[

a = b;

b = c;

c = a + b ;

System. out. print(c);

]

Similar questions