Write a Python program that uses a ‘FOR’ loop to print even numbers from 2 to 100,...

0 голосов
138 просмотров

Write a Python program that uses a ‘FOR’ loop to print even numbers from 2 to 100, inclusively.


Информатика (12 баллов) | 138 просмотров
Дан 1 ответ
0 голосов

Ответ:

Answer:

Объяснение:

for i in range(2,101): #101 because 100 must be printed too

   if i%2 == 0:

       print(i)

(154 баллов)