I’m learning from a book and here is my task:
Write a program to sum a series of numbers entered by the user. The
program should first prompt the user for how many numbers are to be
summed. It should then input each of the numbers and print a total
sum.
I have pretty much no idea how to start on this. My first problem is just after the user definies how many numbers are to be summed, I don’t know how to make use of the information to build the next input expression for exact numbers.
If we knew before how many numbers the user will enter this would be no brainer but…
Thanks for the help so far in the comments.
I came up with this code, it does give the correct answer but it prompts the user to enter his numbers
how_manynumber of times each time asking and printing theEnter exact numbersphrase. It would be desired to fix it that way that the user can enter the numbers once with a comma. Any suggestions?