Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise 2.17 Sum of a sequence

Implement a program, which calculates the sum 1+2+3+...+n where n is given as user input.

Sample output:

Last number? **3**
The sum is 6

The previous example calculated 1 + 2 + 3 = 6

Last number? **7**
The sum is 28

And this one calculated 1 + 2 + 3 + 4 + 5 + 6 + 7 = 28

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages