Sign InCreate Account

Upgrade to Pro

Upgrade Now

Coding Workspace

EditorProjectsPractice QuestionsFlowcharts

AI Assistance

Pseudocode TutorCode GeneratorCode FixerCode Converter
Back to Problems
PreviousNext

Sign in to run tests against edge cases and save your code automatically.

Problem Description

Hard

Nth Fibonacci Number

PROAlgorithms
Loops

Write a program that takes an integer `N` and outputs the `N`th number in the Fibonacci sequence. Assume the sequence starts with 1, 1, 2, 3, 5... so if N=4, output 3.

Example Input

5

Example Output

5

Success Rate:

0% (0 passed / 0 attempted)

Code

Draft auto-saved

Test Results

Click "Test Code" to evaluate your code against the tests.

Product

For SchoolsOverviewFeaturesFAQ
PseudoEditor

© 2026 PseudoEditor. All rights reserved.