Write a program to print fibonacci series of an entered number in c++
Answers
Answered by
0
Answer:
Can I write in Java ? If yes then here it is:
Explanation:
import java.util.*;
public static void main (String Args[])
int a=1,b=0,c=0;
for(a=1;a<=7;a++){ //here I have used n as 7 times
a=b;
b=c;
a=b+c;
System.out.print("Fibonacci series ="+a);
}
System.out.println();
}
}
Hope it helps...
Pls mark it brainliest if at least the logic helps you
Similar questions