Lessons
C++ · Repeating Things · 17. Putting It Together
step 1 of 6
First n, then n numbers
Judge problems love this: the first number says how many numbers come next.
So I read n, then loop n times, reading one x each round.
Mission
Make me print each number doubled.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
← press me!
Press RUN to see what this program does.