Warning! The page was not fully loaded, probably because of a network issue. It could be that not all functionalities work as expected. Please try reloading the page.
Drop links or images here to add them to the editor.
Sum with While ⭐⭐
Read integers until the user enters -1. Print the sum of all numbers read, not counting the -1.
Input
One or more integers, one per line, ending with -1.
Output
Print the sum of all numbers read (not including -1).