iampotate3300 iampotate3300
  • 02-03-2020
  • Computers and Technology
contestada

Write a program which reads an integer from input using pancakes = int(input()). If pancakes is more than 3, print out Yum! and if pancakes is not more than 3, print out Still hungry!

Respuesta :

ijeggs
ijeggs ijeggs
  • 04-03-2020

Answer:

pancakes = int(input("Enter number of pancakes "))

if pancakes>3:

 print("Yum!")

else:

 print("Still hungry!")

Explanation:

It is a very simple program in python programming language

The input function is used to prompt user to enter a value for the variable pancakes

Using if and else constructs the program outputs Yum! or Still Hungry

Answer Link

Otras preguntas

what is the solution of the system of equations? y = –3x 7 y = 2x – 8 a. (3, –2) b. (–15, 52) c. (–2, 3) d. (0.2, –7.6)
you have been asked to recommend a alternative source of energy that your town could use to generate electricity. describe the renewable resource that you belie
Are you supposed to put a period at the end of a verbal expression in algebra?
which house is base on population according to the great compromise ?
what does the pilot want "The cold equations by Tom Godwin"
what should you pay attention to when you see a title for the first time?
why did the united states get pulled into ww1
where is the area around 54°40’
Identify the number that does not belong with the other three. Explain your reasoning. 50.1 repeating 1, negative 50 over 2, negative 50.1, square root 50
what do people look for when they skim? a. the length of a document b. the most important information c. the number of subheadings d. the minor details of the d