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

Identify m∠ACD. HELP PLEASE! I am on a time limit!
In January 1947, the US ambassador to the Soviet Union sent a report to the US Defense Secretary that warned that that country must be contained. What ongoing
J’________ à la piscine avec mes amis samedi dernier. (être)
Napoleon Bonaparte sold the Louisiana Territory to the U.S. so America could become a rival to England. True or false
What emotion best describes the tendor of Europe after World War One? A. Anxiety B. Complacency C. Joyfulness D. Superiority
Urgent! Please answer using the screenshot below!!
Help with these questions, please!! I don't understand them!
Which of the following could qualify as a top-down control on a grassland community? A) limitation of plant biomass by rainfall amount B) influence of temperatu
Help me find the volume please!
Which two factors cause the perpendicular rays of the sun to move between 23.5o n and 23.5o s?