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

someone help please i’ll give brainliest
Which statement about the executive role of the president of the United States is true? A. The president fills the roles of head of state and head of governmen
Find 2/3 + -13/15 answers??
One cubic meter of an ideal gas at 600 K and 1000 Malek kPa expands to five times its initial volume as follows; a) By a mechanically reversible, isothermal pro
expand the brackets and collect like terms 5(3x-1)-3(5x-1)
Where were most Acadians relocated to during the Great Upheaval?
Why was the American victory at Trenton important for the war?
Why did the French and Indian war matter to the colonists? (real answers only please )
world war II propaganda techniques
Can someone invent a fun title for a paragraph about medical advancements in Arabian Peninsula? PLEASE