I was asked in an interview that what would be the Output of the following program::
for loops are top-tested, which means the condition (
i>=2) is tested before the loop is entered the first time.
1, so the condition (
i>=2) isn't true, so the loop isn't entered, so nothing is printed.