+ 3
Elemantary Tasks Part2 for Python3 Learners
This is Elementary Programming Task List 4-Write a program that asks the user for a number n and prints the sum of the numbers 1 to n 5-Modify the previous program such that only multiples of three or five are considered in the sum, e.g. 3, 5, 6, 9, 10, 12, 15 for n=17 6-Write a program that asks the user for a number n and gives them the possibility to choose between computing the sum and computing the product of 1,…,n.
4 Respuestas
+ 7
Nice!
I like it!
+ 3
https://code.sololearn.com/cTGLvMRS11fo/?ref=app