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

sue stacked one box onto another the bottom box had height of 2 1/3 top had 3 2/3 feet how tall were the stacked boxes
A number t divided by 82
Describe where is the fertile crescent located where mesopotania located
find the area of a frame that measures 20 inches on each side and has a width of 3 inches
If you're currently earning $9.25 per hour and you received a 4% increase, what would be your new hourly rate
49,254 find value of 9
Deborah found that six of the 24 students in her class only cell phone what is the ratio of students out on his cellphone to students that do not
What fighting methods did the colonists use against the British troops marching back to Boston from Concord?
what is the value of x in the equation 4x+8y=40 when y=0.8
If the product of a number and -7 is reduced by 3, the resulting number is 33 less than twice the opposite of that number. what is the number?