Menu
Question Index
...


Arrange the following such that the program prints the modulus of all numbers till the input number. In this case input is 30 and divisor is 3. Unselect any unwanted statements using the check box.

  • move     a = a - b;
  • move         System.out.println(a % b);
  • move      int a = 30, b = 3, i = 0;
  • move     b = (i * a) % b;
  • move     while(i <= a){
  • move         i++;
        }

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