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

one custodian cleans a suite of offices in 9 hours when a second worker is asked to join the regular custodian the job takes only four and a half hours how long
If 5 + x = 12, and you add -5 to the left side of equation, what should you add to right side of equation? A) -7 B) -5 C) 5 D) 7
URGENT NEED BEFORE 7:00 2.5 x .08 and 0.3 ÷ 6.12
HELP ASAP!!!! Am I correct???? will give brainliest if CORRECT
In your opinion, why is adequate and careful preparation essential to reducing anxiety when speaking in public?
are integers members of the natural numbers, whole numbers, and rational numbers subsets
what is 11/12 as a decimal
In a certain species of insect, some individuals have flattened white disks on their bodies that protrude and interlock, resembling an orchid flower. This adapt
Slope interspect form
What strongly motivates business owners to produce what others want