write a program to print fibonacci series upto 10 terms in java
Answers
Answered by
13
class fibonacci
{
public static void man()
{
int a=0,b=1,c=0,t;
System.out.print(a+","+b);
for(t=3;t<=10;t++)
{
c=a+b;
System.out.print(","+c);
a=b;
b=c;
}
}
}
HOPE IT HELPS........
plz mark brainliest
Answered by
0
Answer:
hope it will help you
thank you
Attachments:
Similar questions