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

After the passage of the Seventeenth Amendment, how many senators were elected to serve each state?
When Earth moves into the moon's shadow, a solar eclipse takes place. Which phase represents the appearance of the moon during a solar eclipse? A=third quarter
explain why it is not possible to draw a square that is not a parallelogram
When you turn up the volume on a radio, which of the following change: velocity of sound, intensity, pitch, amplitude, frequency, wavelength, or loudness?
you can buy 2 dvds for the same price you would pay for 3 cds selling for 13.20 apiece. explain how you could find the price for 1 dvd
When two fractions are between 0 and half how do you know which fraction is greater explain
When Earth moves into the moon's shadow, a solar eclipse takes place. Which phase represents the appearance of the moon during a solar eclipse? A=third quarter
is 2/5 larger than 2/7? (Fractions)
describe how switching the desk lamp on and off shows that light waves transfer energy
what is 6.877 rounded to the nearest whole number