Menu
Question Index
...

What will be the output of the following program?

public class PrintReverse {

    public static void main(String[] args) {
        int i = 25, j = 2;
        while (i > 9 || j < 20) {
            i -= 3;
            j += 2;
            System.out.print(i + j + "^");
        }
    }
}


224^196^168^1310^1012^714^416^118^-220^
224^196^168^1310^1012^714^
224^196^168^1310^1012^714^416^118^-220^-522^
Some other output or Compilation Error

Doubts

Problems

Topic: while Loop 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