import java.util.*;
class Fibb{
public static void main(String args[]){
final int Four=10;
Scanner in=new Scanner(System.in);
int a=0,b=1,c=0,sum=0;
for(int i=2;i<=Four;i++){
c=a+b;
System.out.println(c);
a=b;
b=c;
}
System.out.println(c);
}
}
No comments:
Post a Comment