Skip the negatives

First read how many numbers follow, then read that many whole numbers. Add up only the numbers that are not negative, and print the sum. For the input 5 followed by 3 -2 7 -8 1, print 11.

When a number is negative, use continue to go straight to the next round. Make sure every number still counts as read, or the loop will wait for input that never comes: count it before the continue.

Tests
Results will be shown here
C++
Console
Press Run to start your program.