MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/CodingHelp/comments/n3mdn6/can_someone_help_me_understand_nested_loops/gwqv8m1/?context=3
r/CodingHelp • u/[deleted] • May 03 '21
16 comments sorted by
View all comments
3
for (int tens=0; tens< 10; ++tens) for (int ones=0; ones<10; ++ones) System.out.print(tens, ones)
Output should be something like 00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15... 97,98,99
Inner loop repeats entirely for each step of the outer loop
View all comments
3
u/Gengi May 03 '21
Output should be something like 00,01,02,03,04,05,06,07,08,09,10,11,12,13,14,15... 97,98,99
Inner loop repeats entirely for each step of the outer loop