olverac174 olverac174
  • 20-09-2022
  • Computers and Technology
contestada

# Your task is to modify the previous examples code to
# print out all the even numbers from 1 to N where N is
# an int from the user

Your task is to modify the previous examples code to print out all the even numbers from 1 to N where N is an int from the user class=

Respuesta :

mmuiekbb
mmuiekbb mmuiekbb
  • 21-09-2022

Answer:

n = int(input('N: '))

for i in range(1, n + 1):

   if i % 2 == 0:

       print(i)

Answer Link

Otras preguntas

What is the full answer too 2(3x+4) btw we are on the unit of distributive property
Cameron works for a manufacturing plant. He has been facing a lot of discrimination at his workplace since a few months. If he chooses to press charges against
Increasing feelings of nationalism among many groups led to which consequence after world war 1
Which represents kinetic energy? a salmon resting in still water a bear holding a salmon it has caught a salmon leaping up a waterfall a bear standing
2. A woman named Harriet Miller comes before a judge in a pretrial hearing. She pleads guilty to the charge of stealing money. Under the Sixth Amendment, what
Help me please thanks
In longitudinal waves in a spring, the parts where the coils are spread out are called
what statements about world war 1 are true
Help me!!!!!!! I will give brainest!!~~~
kylee has collected 100 souvenir thimbles from different places she has visited with her family .Twenty of the thimbles are carved from wood. write the fraction