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

Denise is constructing a square. she has already used her straightedge and compass to construct the circle, lines, and arcs shown. what should denise do for her
which element distinguishes hypermedia from linear multimedia?
What do all ecosystems have ? A. biotic parts only B. abiotic parts only C. producers only D. biotic and abiotic parts User: What is another name for food level
a jar of natural peanut butter normally costs $4.00.Today it's on sale for 3.60. What is the percentage of this discount? a. 10%b. 111%c. 90%d. 4%
1) Which of the following had the greatest impact on transportation during the second industrial revolution? A) the steam engine B) the internal combustion C) t
what three major climate zones occur at certain latitudes
how many different elements are present in the compound cocl2
what effect did the capture of fort ticonderoga have on the fighting in boston
The core of the computer’s operating system is called the ____.
how did Spain benefit from Alvarez de pinatas Expedition