Solution: Count and Repeat
Prints the same message multiple times in the console.
Explanation:
The loop starts with
i = 0and runs whilei < 5.Each time the loop runs, it prints "Your name" in the console.
This happens 5 times total, then the loop stops.
Solution: Count and Repeat
Prints the same message multiple times in the console.
Explanation:
The loop starts with
i = 0and runs whilei < 5.Each time the loop runs, it prints "Your name" in the console.
This happens 5 times total, then the loop stops.