OpenMRS

Write a Java program to calculate the N-th term of a Fibonnaci sequence

Write a small Java class that asks the user for the index of the Fibonnaci number in the sequence they want to see, and then display the number.

Your program must:

  • handle user input validation
  • cater for N < 2000
  • have a running time less than 5 seconds.

Submission Steps:

  1. Upload your code to GitHub gist or an online Java editor that can be shared
  2. Submit the link.

Task tags

  • java
  • algorithm

Students who completed this task

21yliu, Saliya Bandara, Swastik, AnkitGCI, Kim Jong Un, regeX, Skyterix, SwapnadeepPro, MysteryMage, Jesse

Task type

  • code Code

Level

Beginner
close

2019