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

Briefly explain importance of light year​
(c) Given that the average speed for the entire journey was 80 km/h, form an equation in x and solve the equation.​
The number of measles cases increased 36.5% to 193 cases this year. What was the number of cases prior to the increase? The number of measles cases increased 36
A swimming pool is 50 metres long and 25 metres wide. How many lengths of the pool will a competitor in a 1500 metre race have to swim?​
what are storage devices? write two such devices​
4. essay on first day of school with proper nouns nd common nouns​
HELP ASAP: How did television contribute to a culture of conformity in the united states during the 1950s?
Please answer all 3 questions I will give brainliest if I can if ur right!
What is the difference between a status bar, title bar, and tabs?
Kyerew akyiwade ahorow anum a ewo wo mpatam​