UP | HOME

Exercise 4

sum of the first 10 positive integers

Write a program that computes the sum of the first 10 positive integers. Print the resulting sum to the screen like this:

the sum of the first 10 positive integers is: 55

solutions


Paul Gribble | fall 2014
This work is licensed under a Creative Commons Attribution 4.0 International License
Creative Commons License