Menu
Question Index
...

What will be the output of the following program?

public class MastiBrother {
    public static void main(String[] args) {
        int i = 5;
        while (i < 7) {
            for (int k = 0; k < 2; k++) {
                System.out.print(i);
            }
            i++;
        }
    }
}


5566
5656
Some other output
Compilation Error
Runtime Error

Doubts

Problems

Topic: Nested Loops in Java

Read this topic
Take test on this topic

0
Wrong
Score more than 2 points

© meritcampus 2019

All Rights Reserved.

Open In App