Each exercise is listed with the expected output below it. The link takes you to a page with the source code for that exercise.
integers.cpp Write a
program to print the whole numbers from 0 to 20, one per line |
power.cpp Write a program
to print the whole numbers from 0 to 20, along with their 2nd, 3rd, and 4th powers. |
fibonacci.cpp Write
a program to print the first 20 numbers in the Fibonacci series (start with
1 and 1, then each number is the sum of the previous two numbers). |
0 |
0 0 0 0 |
1 |