A simple Java program that generates the Fibonacci sequence up to a specified number of terms. The program includes error handling for invalid inputs and uses Scanner
for user input.
- Generates Fibonacci sequence up to a user-defined number of terms.
- Handles invalid input gracefully.
- Console-based user interaction.
- Clone the repository:
git clone https://github.com/nurulashraf/java-fibonacci-generator.git
- Navigate to the project directory:
cd java-fibonacci-generator
- Compile and run the program:
javac src/FibonacciGenerator.java java -cp src fibonaccigenerator.FibonacciGenerator
- Enter a positive integer when prompted to generate the Fibonacci sequence.
This project is licensed under the MIT License - see the LICENSE file for details.