A Sum of Numbers

Exercises

  1. Write a program that writes out the sum of the first 100 natural numbers.
  2. Write a program that writes out the sum of squares of the first 100 natural numbers.

Click here for solutions