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'll make you the Brainliest if you answer this question right) How was Britain’s policy toward Canada beginning in the late 1700s similar to its policy toward
Please help 35 points!
What is most likely to happen as a result of the change in interest rates?
Which question could be answered using the scientific method? Why does my dog like to sit on the sofa? Would Mars be a fun place to live? Are butterflies hap
Simplify (2x-3)(2x-2)
The specific purpose or place for an organism within an environment is called their what? a.population b.limiting factor c.abiotic factor d.niche
In a right triangle, a and b are the lengths of the legs and c is the length of the hypotenuse. If a = 9 yards and b = 40 yards, what is the perimeter?
Plz I need URGENT help! What did you find as the mean average temperature in New York City and San Francisco?
What is the mean of the following set of data? {6,9,3, 8, 9,3,4}
The answer ? What is it i want to kbow it get better in maths and studying so please give me the answer and thank you .