Search This Blog

Thursday, March 25, 2010

Fibonacci Series Ordinary Way:

public class Fibo
{
public void display(int term)
{
int t1=0,t2=1,t=t1+t2;
for(int i=1;i<=term;i++)
{
System.out.print(t+" ");
t=t1+t2;
t1=t2;
t2=t;
}
}
}




Discussing Java application programming across the barrier of classroom for the young minds.

No comments:

Post a Comment