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

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