Menu
Question Index
...


Arrange the following such that the program prints the even numbers till the input number. In this the case input is 20. Unselect any unwanted statements using the check box.

  • move i = i + 4;
  • move }
  • move     if (i % 2 == 0) {
  • move  i--;
  • move     int input = 20;
  • move     }
  • move     for (int i = 2; i < input; i++) {
  • move      System.out.print(i+ " ");

Doubts

Problems

Topic: for 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