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

Which species destroys 400 species of plants? (horse, Mediterranean fruit fly, Kudzu, Olive)
What happened after the night of broken glass?
How do you find the squared foot of an octagon?
A soccer ball has a wholesale price of $14 and is marked up 115% before it is sold. If Joe purchases the soccer ball with a 5.5% sales tax, how much will he pay
Are the lines y = –x + 8 and 3x + 3y = 9 perpendicular? Explain.
What is not a power given to congress in the constitution
find f'(x). ,f(x)=radical3x+1​
as the elements in period 3 are considered in order of increasing atomic number, there is a general decrease in1) Atomic mass2) Atomic radius3) electronegativit
Pleaseeeeeeeee help me
2. Explain the most basic way to distinguish a good from a service.