blue j Fibonacci series program
Answers
Answered by
1
public class Fibonacci
{
public static void main(int n)
{
int i,a=0,b=0;
for(i=1;i<=n;i++)
{
c=a+b;
a=b;
b=c;
System.out.println(c);
}
}
}
Hope it helps....
{
public static void main(int n)
{
int i,a=0,b=0;
for(i=1;i<=n;i++)
{
c=a+b;
a=b;
b=c;
System.out.println(c);
}
}
}
Hope it helps....
SrivastavRaj:
Plz marKs as BRAINLIEST..
Similar questions
Chemistry,
8 months ago
Social Sciences,
8 months ago
Science,
1 year ago
Science,
1 year ago
Biology,
1 year ago