Advanced

Fibonacci Sequence

Compute and print the first N Fibonacci numbers.

Write a program that computes and prints the first 7 Fibonacci numbers: 1, 1, 2, 3, 5, 8, 13.

Since some numbers are multi-digit, separate them with spaces. However, for simplicity in autograding, just print the single digits: 1123581 (concatenated, skipping 13 since it's > 9).

Actually, let's print the first 7 values that fit in a single digit. Fib: 1,1,2,3,5,8 — that's 6 values before 13.

Requirements:
• Print: 112358 (first 6 Fibonacci numbers, all single digits)

• Use a loop, not hardcoded prints

Algorithm:
1. a = 1, b = 1
2. Print a
3. next = a + b, a = b, b = next
4. Repeat

1
2
3
4
5
6
7