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 did events of the past impact the future? Select one event that you have studied in World history and identify what impact it has had on our world. To what
What is 15-(37+8) divided by 3?
2.5 liters = _ gallons Pls halp
What happened once people had a surplus of food? a. They irrigated crops and stopped eating meat. b. They began to divide up the labor and do other tasks. c. Th
What are 7 facts about Uranus?
how to solve ; A number N increased by 19 ?
During the Han dynasty, why were merchants considered such a low class in the social structure?
Determine whether y varies directly with x in the equation 6x-3=2y-3. If so, what is the constant of variation?
Explain biodiversity
Through: (2,-4), slope =-1