answersLogoWhite

0


Best Answer

CLS

PRINT "PROGRAM: Print squares of all even numbers from 1 to 20"

PRINT

PRINT "number", "squared"

PRINT

FOR number% = 1 TO 20

IF number% MOD 2 = 0 THEN

PRINT number%, number% * number%

END IF

NEXT

END

User Avatar

Wiki User

13y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

15y ago

public class Test {

public static void main(String[] args){

int i = 100;

do {

System.out.println(i);

i = i + 2;

} while (i <= 200);

}

}

This answer is:
User Avatar

User Avatar

Wiki User

15y ago

public class Test {

public static void main(String[] args){

int i = 100;

do {

System.out.println(i);

i = i + 3;

} while (i <= 300);

}

}

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: WAP To print the squares of all even numbers from 1 to 20?
Write your answer...
Submit
Still have questions?
magnify glass
imp