For x = 0 To 100
For y = 5 To -10 step -1
If y = 0 Then
Exit For
End If
Console.Write("Hello")
Next
If x > 10 Then
Exit For
End If
Next
Question: If this code is executed, How many times will “Hello” be printed out?
The answer to your question is provided in the image:
Comments
Leave a comment