Write a program in Java to display fibonacci series up to 10 numbers.
Answers
Answered by
1
Answer:-
Please see the attached image here
Necessary:-
To mark me as brainliest and thanks me if you like my answer also vote me as per ur choice. Hope my answer will be helpful!!!!
Attachments:
Answered by
3
Answer:
class fib
{
void main(int n)
{
//variable declaration and initialisation
int a = 0, b = 1 , p;
System. out. print length(a +"\t"+ b) ;
for(int i = 1; i <8; i++)
{
p = a + b;
System. out. println(p) ;
a = b;
b = p;
}
}
}
Similar questions
Computer Science,
3 hours ago
English,
3 hours ago
Computer Science,
6 hours ago
English,
7 months ago