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

loader-image
Le prix initial était : € 11,00.Le prix actuel est : € 10,00.
Le prix initial était : € 6,00.Le prix actuel est : € 5,00.



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

Leave a Reply

Your email address will not be published. Required fields are marked *