Lessons
C++ · Algorithm Foundations · 32. Fast Input
step 1 of 7
Read until it ends
Sometimes nobody tells me how many numbers are coming. cin >> x is true while it can read, and false when the input runs out.
Mission
Add the numbers up too. Print count sum: 5 60.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
← press me!
Press RUN to see what this program does.