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
Cours Python
Write a python algorithm that asks the user to enter an integer n and displays the value of the sum 1 + 2 + … + n = ?
Younes Derfoufi
CRMEF OUJDA
Notifications
1 thought on “Solution Exercise 8: calculating the sum of the first numbers in Python”