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

Plz help me I’m very confused plz explain I really need help
I need a quick help !!
The figure is made up of 2 hemispheres and a cylinder. What is the exact volume of this figure?
Where are proteins made in the cell?
Simplify the expressions. Show your work. (X-2) (3x-4) Please don’t guess
20 POINTS!!! Rewrite each of the following durations using EIGHTH notes. Write in words and as a fraction: 1 quarter note 1 half note
find the equation of the line that is parallel to the x-axis and goes through (4,-3)​
who was charlemange A. pope of the holy roman empire B.wife of the last roman empire C. King of the franks And D. prime minister of carolingian dynasty
Write 88% as a fraction in simplest form
otassium hydroxide (KOH) and hydrochloric acid (HCl) react in a beaker. They form potassium chloride (KCl) and water (H2O). What type of reaction is this? synt