Control Flow and Functions·21 of 62
Read an integer n from standard input. Using a for loop, sum every integer from 1 to n inclusive, and print the total.
n
for
1
Sign in to try this exercise.