answersLogoWhite

0

Following logic for Fibonocci int f1=0; intf2=1; int i=0; while(i<8){ int f3=f1+f2; f1=f2; f2=f3; System.out.println(f3); i++; }

User Avatar

Wiki User

16y ago

What else can I help you with?