Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
3e
//'main' method must be in a class 'Rextester'. //openjdk version '11.0.5' //Lokeshreddy 2000 import java.util.*; import java.lang.*; class Rextester { public static void main(String args[]) { int n,a=0,b=1; System.out.println("Enter no. of values to be printed:"); Scanner scanner=new Scanner(System.in); n=scanner.nextInt(); System.out.println("Fibonacci Series of"+n+"numbers:"); int i=1; while(i<=n) { System.out.print(a+""); int c=a+b; a=b; b=c; i++; } } }
run
|
edit
|
history
|
help
0
right swastik
3a
Leetcode 297. Serialize and Deserialize Binary Tree
JAVA # Dizi Ortalama
rta
LinearSearch
Min Quadrato
Coding Challenge - 04 (Perfect numbers)
Java: If, Else, While, litle program
jb14.0 tests