Source Code:
public class P17 {
public static void main(String[] args) {
for(int i=2; i<=20; i+=2) {
System.out.print(i + " ");
}
}
}
Output:
public class P17 {
public static void main(String[] args) {
for(int i=2; i<=20; i+=2) {
System.out.print(i + " ");
}
}
}