CJCoding With Joseph
15free / daySign inCreate account

Sum Of Saved Numbers

Four whole numbers from input are written to numbers.txt, one per line. Inside the read-back loop convert each line with int() (the newline does no harm to the conversion) and add it to total, then print Total: <total> on one line after the loop. Input: four lines, each a whole number, no prompt.

Expected Output:

Total: 18

= newline. The output ends with a newline — print one after the last line.

Hints2 available
Topics:
Files
📥 Auto-Input:
3\n4\n5\n6\n
This input is automatically fed to your program's stdin
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (pr, inp, def)

Your Output

Run your code to see the output here...

Test Cases

Run your code to see test case results.