Elemantary Tasks Part2 for Python3 Learners | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

18th Aug 2017, 10:52 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
4 Answers
+ 7
Nice! I like it!
18th Aug 2017, 10:54 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
18th Aug 2017, 11:50 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 3
https://code.sololearn.com/cTGLvMRS11fo/?ref=app
18th Aug 2017, 11:50 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
18th Aug 2017, 11:34 AM
Melih Melik Sonmez
Melih Melik Sonmez - avatar