fork download
  1. class EvenRollNo
  2. {
  3. public static void main(String[] args)
  4. {
  5. for(int rollno = 2; rollno < 40 ; rollno = rollno + 2)
  6. {
  7. System.out.println(rollno);
  8. }
  9. }
  10. }
  11.  
Success #stdin #stdout 0.09s 27768KB
stdin
Standard input is empty
stdout
2
4
6
8
10
12
14
16
18
20
22
24
26
28
30
32
34
36
38