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

Which of the following statements is true? The Challenger Deep was explored by Picard and Walsh. Data from Jason-1 will help scientists study deep sea life. Sa
three structures of the internal ear
In the diagram to the right, prove that the sum of the angles marked by arrows is 360°
CAN SOMEONE PLEASE HELP ME!!! I have been stuck on this for 2 days "All this is related by Americo, who adds that they returned to Spain and arrived at Cadiz wi
Fill in the blank with the correct form of SER. Ella ________ de Paraguay.
what is the distance for austin ,tx to houston ,tx if it is 3.25 inches on the map .
Why did ellen make a sharp cry when she went outside with henrik?
The first decision you face when confronted with a problem is
Leadership is sometimes irrelevant. a. True b. False
I need help on how to write a personal narrative