class Pro21
{
public static void main(String arg[])
{
int a,b,c,i,n;
a=0;
b=1;
c=0;
n=Integer.parseInt(arg[0]);
System.out.println(a);
System.out.println(b);
for(i=1;i<n-2;i++)
{
c=a+b;
a=b;
b=c;
System.out.println(c);
}
}
}
Tuesday, 4 June 2013
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment