Solution Exercise 8: calculating the sum of the first numbers in Python

Exercise 8

Write a python algorithm that asks the user to enter an integer n and displays the value of the sum 1 + 2 + … + n = ?

Solution




 

Younes Derfoufi
CRMEF OUJDA

1 thought on “Solution Exercise 8: calculating the sum of the first numbers in Python

Leave a Reply