This document describes a programming practical to print numbers from 1 to 10 using a while loop and do-while loop. The program first uses a while loop to print the numbers, then uses a do-while loop to print the numbers, and confirms that both loops successfully printed numbers from 1 to 10 as required.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
57 views2 pages
Print Numbers 1 to 10: Loops Explained
This document describes a programming practical to print numbers from 1 to 10 using a while loop and do-while loop. The program first uses a while loop to print the numbers, then uses a do-while loop to print the numbers, and confirms that both loops successfully printed numbers from 1 to 10 as required.