Print 1 to 10 and 10 to 1 using single for loop
Filed under Mphasis
The question
Print numbers from 1 to 10 and then 10 to 1 using a single for loop that calls only once, producing the specific output sequence.
No write-up yet. Related questions below have one.
Related Mphasis questions
Collected from public candidate posts and coding forums. Updated Nov 2026.