diff --git a/Introduction to Java/Lecture 8/Functions and Scope/Exercises/FibonacciNumber.java b/Introduction to Java/Lecture 8/Functions and Scope/Exercises/FibonacciNumber.java new file mode 100644 index 0000000..f28963e --- /dev/null +++ b/Introduction to Java/Lecture 8/Functions and Scope/Exercises/FibonacciNumber.java @@ -0,0 +1,36 @@ +//write a program to check whether a input n is part of Fibonacci Series +//if yes print true else false. + + +// --------------------------------------------------------------------------------------------------------- + + +import java.util.Scanner; +public class FibonacciNumber { + + public class Solution { + public static boolean checkMember(int n){ + int a = 0; + int b = 1; + int c; + while(a