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

I need Help on these questions please help me 1. FILL IN THE BLANK: The ____________ for salt trade was the most important factor in Ghana's rise. (Points : 3)
A bakery sold 111 cupcakes in one day. The head baker predicted he would sell 91 cupcakes that day. What was the percent error of the baker's prediction? 18.02%
Why was Ivan III called "the Great"? A. He unified Russia, took the title of tsar, and rebuilt Moscow's Kremlin. B. He expanded the Russian Empire, freed the se
Is it possible to cut a rectangular prism so that its cross section is a circle orman ellipse?
Explain how the first three steps of scientific inquiry are related..
How many times larger is 220 than 22
the scale in the drawing is 2cm 5m. what are the length and width of the actual room. __________14inch | 7inch|
Why were Americans eager for new goods and services
What does the word "valentine" mean?
how many eighty fours are in 672