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 have no idea how to do a critique and it's due in 5 days. Please give me some tips.
Although Churchill was loved by the English, what happened to him?
The head scale of a screw gauge contains 100 divisions and it's pitch is 1mm. what is the least count of the screw gauge​
I need help:(...pls do it correctly so i could rate u 5 and thank u:)
Victoria earns $255 by working 20 hours each week babysitting. Victoria earns $2.90 more per hour than her friend, Tanaja. How much does Tanaja make in 10 hours
I need help with 5 and 6​
What is the first step when rewriting y = 3x2 + 9x - 18 in the form y = a(x h)^2 + k?
Which of these structures is not an example of an extracellular matrix?
why leaders are expected to be very wise​
How many electrons can a 5d sublevel hold?