Skip to content

Commit

Permalink
Check 1st commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sandipan08 committed Sep 30, 2020
1 parent e5622ae commit fe52443
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions FiboNum.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,21 @@
import java.utill.*;
class FiboNum{
public static void main(String s[]){

}
Static int fibo(int n){

public static void main(String s[]){
Scanner sc=new Scanner(System.in);
int n,i,t1=0,t2=1,nextitem;
System.out.println("Enter the number u generate ");
n=sc.nextInt();

for(i=0;i<=n;i++)
{
System.out.println(t1);
nextitem=t1+t2;
t1=t2;
t2=nextitem;
}

}

}

0 comments on commit fe52443

Please sign in to comment.