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

kelvin says that 22/30 is greater than 22/32 do you agree ? explain
Use the distributive property to express each sum With the gcf factored out . 35+63
How did Greeks use myths to explain the world around them
What the answer to 5x=195.5
please help!!!!its due tomorrow !!!
t divided by 3/12=6 solve the
Joe borrowed $2,000 from the bank at a rate of 7% simple interest per year. How much interest did he pay in 5 years?
simplify fraction 40/85
would you measure a barn with miles or yards?
Benny has saved three thousand nine hundred cents over four days from selling lemonade.How many dollars does Benny have?