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 area of a circle whose radius is 4 cm?
To find the product 3/7 x 4/9 Cameron simplified 3/7 to 1/7 and then mulitiplied the fractions 1/7 and 4/9 to find the product 4/63,what is Cameron's error?
Solve the absolute value 2|3x-5|-8=8
Explain one way that communication technology is connected to human culture.
What is 1955 divide by 85
(c) Which is greater, 300 kelvins or 25 degrees Celsius? Show your work.
What profession is responsible for providing short term care for people being transorted to the hospital?
A collective noun names a group of more than one person, place, or thing. True False
Which statement comparing the Middle Ages to the renaissance is false?
A washer and a dryer cost $450 combined. The cost of the washer is two times the cost of the dryer. What is the cost of the dryer?