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

ompon las siguientes oraciones en sintagmas y clasificalos segun la categoria gramatical su nucleo---- -el Tecnico arreglo su ordenador -Nosotros Iremos juntos
Increasing your 401k deduction will ________ your take-home pay and __________ your federal taxes in the current year.
BA + C = D solve for B 1. B = D-A-C 2. B= D+C+A 3. B = (D+C)/A 4. B = (D-C)/A
Tyrell does sit-ups every day. On Monday, he did 4 sit-ups. On Tuesday, he did 8 sit-ups, and on Wednesday, he did 12 sit-ups. Based on the pattern, make a con
what compromise finally made the constitution the law of the land?
Explain how a bucket of water would be an open system?
Which molecules do mammals use to store extra glucose  in their muscles? A.Starch B.Glycogen C.Baleen D.Myosin
Pablo y Olivia ____________________ en la fiesta. (bailar) a. bailas c. bailan b. bailamos d. baila
What is 600000-347201
The phenomenon of the _____ occurs when an individual confuses her own thoughts with those of a hypothesized group of people.