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

why are some atoms radioactive
according to the judge, what has to be cleared for there to be a vote of "not guilty"?
Who help found maryland as a safe place for catholics
Which of these is an example of a metaphor in My Forbidden Face?
A student was given an assignment to determine the percentage of students that brought a bag lunch to school. The student chose 5 random classrooms and surveyed
1. In 1840, if you wanted to travel from Baltimore, Maryland, to Vandalia, Illinois, what route would you take? A. Chesapeake and Ohio Canal B. Nation
What is the probability that an interaction lasts longer than 4 minutes with a mean of 3 minutes and a standard deviation of 0.4 minutes
A right circular cylinder has a radius of 5 inches and a height of 10 inches. what is its volume?
• “commensalism” regarding sharing food and dining together implies that something is owed to another. what is owed in commensalism?
If 3 pieces of candy cost $0.45, how much would 9 pieces of candy cost?