How can a write a c++ or python program that asks a user for a num and calculates sum of numbers from one to the input. Help plz | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can a write a c++ or python program that asks a user for a num and calculates sum of numbers from one to the input. Help plz

2nd Oct 2018, 8:03 AM
Nelson Mandela
Nelson Mandela - avatar
2 Answers
+ 6
Read through the course (c++/python), I am 99% sure that your question will be answered there.
2nd Oct 2018, 8:08 AM
Kiwora
Kiwora - avatar
+ 1
Read about inputs and for loops. You'll find a solution
2nd Oct 2018, 5:20 PM
Henry
Henry - avatar