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

if m/_A = (11x+37)⁰ and x = 13, find m/_A and classify the angle.Acute Right Obtuse Straight​Help Fast!!
Write an equation of a line, in slope-intercept form, that is perpendicular to the line y=2x+5 and passes through the point (8,-3)
Which of the following best describes the Cold War? A. convert hostility between western democratic nations and eastern communist nation B. barriers built by co
A car salesman earns a base salary of $850 plus a commission of 2.5%. How much will he earn if he had $5,400 in sales?
please i need the answer quick!
A MailTip is an instantaneous pop-up message that warns users of bad email addresses. forces the sender to check their grammar and spelling. gives you real-t
Which type of joints allows movement
Bob opened a savings account with $115. He now saves$35 a month(x). Write an equation representing how much money (y) Bob has in his savings account.
Solve for X -12=12x+36
help me on a multiple choice question, please! correct answer gets brainliest! consider the following function. y = 18 (1.06)[tex]x^{t}[/tex] which scenario cou