About this document
Java Fibonacci Series Program by Saiganesh Reddymeni is a document available to read on EtoBox.
The document describes a Java program to display the Fibonacci series. The program takes a command line argument representing the maximum number. It initializes two variables a and b to 0 and 1. It prints a and b and calculates the next number c as the sum of a and b. It prints c and updates a, b and c in a while loop until c exceeds the maximum number. The program was tested with different maximum numbers and the output matched the expected Fibonacci series in all test cases.
- Author
- Saiganesh Reddymeni
- Language
- EN