Computer Science, asked by hsmohd20, 1 month ago

write a program to print even numbers from 10 to 20

Answers

Answered by NancyTusham
0

Answer:

One way

2

4

6

8

10

12

14

16

18

20

Another

2

4

6

8

10

12

14

16

18

20

Explanation:

Here are two ways in PHP, starting a for loop with 2 and incrementing by two, and testing if there’s no remainder when dividing by 2. You didn’t say which language you’re using but most all languages can do for loops and find remainders from integer division…

Similar questions