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

The largest ethnic group in Nepal are the Bhote. true or false
What is the evidence that Parliament held the REAL authority in the English constitutional monarchy?
give two reasons why it is important to wash your hands both before and after completing a lab.
Describe the next figure in each pattern. Then draw the figure
What times what will give m the answer 64
In the state of Georgia, a juvenile who is 13 years of age can be tried as an adult if he or she...
how much more is 7/20 than 3/20
What are four possibilities for concluding an essay?
One of the biggest pull factors that lured people to move West was cheap land. true or false
Do all parallelograms have diagonals that are lines of symmetry?