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

A California amusement park had an attendance of 14,730,000 in a year. A Florida amusement park had an attendance of 17,640,000 in a year. Round each number
Explain why it is important for scientists to balance open-mindedness and skepticism.
do you think that Scott should have won his case?Why?
The sale tax in New York is 8.25%, about how much will a 65.95 pair of shoes cost including sale tax
How did western culture and society change in reaction to world war 1?
Mexican food is a mix of what types of food
In making a fruit punch for a party, you mixed 1/2 gallon of grape juice with 1/5 gallon of orange juice. How many gallons of punch did you make?
_____ of sensory receptors (nerves) are in the skin for the sensations of pain, touch, heat, cold, and pressure.
If you want to chart trends over time, you should use a _____________ chart.
present five incidence, as example, where sports personalities rights were violated?