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 recipe calls for 6 cups water and 4 cups of flour if the recipe is increased how many cups of water should be used with 6 cups of flour
In the early 1800s, many people in the United States migrated westwards because
What happened as a result of the Frankfurt Assembly?
Does technology always follow science? Explain.
which subatomic particle will be attracted by a positively charged object? A) proton B) neutron C) electron D) positron
While Alexander Hamilton supported merchants, Thomas Jefferson was more sympathetic toward the needs of
The act of formally approving something is known as
Under President Coolidge, the concerns of Mexican Americans and African Americans were a. a high priority. b. addressed in a series of fiery radio speeches. c.
Why did the British fight the French in 1754?
with the vital assistance of ,theodore roosevelt established the first comprehensive national conservation policy.