shestheone64072 shestheone64072
  • 30-12-2020
  • Computers and Technology
contestada

Write a program that prints the numbers 1 - 50. If the number is even print the word 'EVEN!' next to it. If the number is odd print the word 'ODD!' next to it.

Respuesta :

Cytokine
Cytokine Cytokine
  • 31-12-2020

In python 3.8:

for x in range(1,51):

   print(str(x)+" EVEN!" if x %2==0 else str(x)+" ODD!")

This works for me. Best of luck.

Answer Link

Otras preguntas

Ellipses have symmetry through only their major axis? true or false
Economic cycle that involves a rise in prices linked to a sharp increase in available money
_____ drama club members are organizing a car wash. A.) Us B.)We which is it?
Because the Jews had become so skinny they could fit 300 per boxcar on the train
(05 LC)Which of the following is the best habit for success in school?
Identify the greenhouse gases that make the greenhouse effect possible. Check all that apply. water vapor nitrogen carbon dioxide methane nitrous oxide
What is the probability that a point chosen at random from AK is on GJ?
When is it appropriate for law enforcement to engage in wiretapping without first obtaining a search warrant?
A pump removes 1500 gal of water from a pool at a constant rate of 40 gal/min. Which equation models the amount of water y in the pool after t minutes?
According to critics of globalization, what disadvantages result from increased international trade?