Skip to content

Commit

Permalink
Update FibonacciSeries.java
Browse files Browse the repository at this point in the history
  • Loading branch information
harshithasudhakar authored Dec 7, 2024
1 parent 9ffecc3 commit 24c87aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions FibonacciSeries.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@

class FibonacciSeries{
void fib(int n){
int t1=1;
int t1=0;
int t2=1;
int t3=2;
System.out.println("The series is: 1, 1, 2...");
int t3=1;
System.out.println("The series is: 0, 1, 1...");
for(int i=3;i<n;i++){
t3=t2+t1;
t1=t2;
Expand Down

0 comments on commit 24c87aa

Please sign in to comment.