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

Which example could be evidence for an organism's growth being influenced by the organism's genes? A. Vegetation grows at different rates depending on the ava
How did the political climate in Italy change after unification?
Anyone plzzz help on spanish
I'm very confused please
What type of environment did the first land plants probably live in?
The kids are racing around a circle on the playground with a radius of 12 feet. If they ran around it 5 times, how far did they run round to the nearest foot?
Most phone numbers have seven digits after the area code, where each digit can be 0-9. How many different phone numbers can there be in one area code? A) 10,000
how to right a number in standerd form
Can someone plz help me with this one problem plz!!!
Who was the paterfamilias in early Rome? a boy's grandfather the oldest living male in a family descendants of the family a boy's father