From 6fe4645abfa472f19c2e39be3c9afae45560c042 Mon Sep 17 00:00:00 2001 From: Manav3099 Date: Sat, 8 Oct 2022 22:57:56 +0530 Subject: [PATCH] Fibonacci series --- fibonacciSeries.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 fibonacciSeries.java diff --git a/fibonacciSeries.java b/fibonacciSeries.java new file mode 100644 index 0000000..694ad6a --- /dev/null +++ b/fibonacciSeries.java @@ -0,0 +1,13 @@ +class FibonacciExample1{ +public static void main(String args[]) +{ + int n1=0,n2=1,n3,i,count=10; + System.out.print(n1+" "+n2);//printing 0 and 1 + + for(i=2;i