Anyone is online...??..please answer this question.....How many times will the loop run...its urgent....
Answers
Answered by
1
Answer:
The outer loop executes 2 times and each time the outer loop executes the inner loop executes 3 times so this will print 2 * 3 = 6 stars.
Answered by
1
Answer:
The loop will run as many times as it takes, until a condition is met. This means that a for loop could run zero times, 1 or more, or even infinite… all depending upon the condition.
Similar questions