DEV Community

Cover image for Fibonacci Series
A
A

Posted on

Fibonacci Series

09/12/2025
This weeks homework is to write a program in Java that calculates the n-th sequence of the Fibonacci Series. It should take an integer as the sequance index and return the number (int). It need to be in simple console mode, no GUI or windows. Use F0 = 0, F1 = 1

The questions that pop in my head are:
So, where do we stop with the term sequances: 10, 20, 90?

Do I want to make it interactive with type comands, since it's in console?

I find homework like this frustrating because surly the professor isn't asking so basic and the other thing is if it is basic why didn't the assignment tell how many term sequances.

So, I just ended up doing this and I just hope its good enough.

hw1-code-2025-09-12 224640
hw1-output-2025-09

Top comments (0)