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

How can selective breeding increase biodiversity within a species?
It takes Joey 1/16 of an hour to write one Thank You card.How many cards can he write in 3/4 of an hour?
is pi 3.14 or 22/7 whis of this is pi?
The bag contained only red marbles and white marbles. If the ratio of red marbles to white marbles was 5 to 4, what fraction of the marbles were white?
A television that was originally marked $199.95 is now 25% off. Write a linear expression for the new cost of the television. Then calculate the sale price of i
Identify the range of the function. A) [−2, 4] B) [−3, 3] C) (−2, 4) D) (−3, 3)
what’s the answer to my questions
There is 45kg of mortar. The ratio of cement to sand in the mortar mix is 1 to 4. How many kg of cement is in the mortar
Can someone please help me
his the bottom, or lowest point, of a wave.