Thành Nguyễn
New member
What is an example of a for loop?
Answer
A “For” Loop is used
to repeat a specific block of code a known number of times
. For example, if we want to check the grade of every student in the class, we loop from 1 to that number.
Answer
A “For” Loop is used
to repeat a specific block of code a known number of times
. For example, if we want to check the grade of every student in the class, we loop from 1 to that number.