Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.
A classic simplified model: each month’s pairs follow Fibonacci. Ask for n (how many terms, at least 2). Print the first n Fibonacci numbers starting 1, 1 (or 0, 1 if your class prefers-pick one and be consistent).
Use a loop; only store what you need (two variables for “previous” and “current” is enough).
Skills: for, updating two variables.