PaycomOA #15
Q15. C continue Statement
EasyConcept questionJudge-ready
Topics (AI-labelled)Simulation
In the original code, s starts at 0 and is incremented in while (s++ < 10); when s is less than both thresholds, the loop executes continue, otherwise it prints s. This site turns the upper limit and the two thresholds into inputs, keeping the loop and condition semantics unchanged.
Input
One line with three integers n, a, b. Ranges added by this site: 1≤n≤100000, 1≤a,b≤n.
Output
Output every s that is not skipped by continue, in the order the original loop prints them, separated by spaces.
Example 1
Input:
10 4 9
Output:
4 5 6 7 8 9 10
Example 2
Input:
5 1 5
Output:
1 2 3 4 5
Example 3
Input:
5 8 3
Output:
3 4 5
Editorial
Loading solution…