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

What advantage does a business letter have over an e-mail?
Specific gravity is the density of an object compared to water? true or false?
American foreign policy, according to the text, tends to alternate between a. cold wars and hot wars. b. idealism and realism. c. bipolarism and multilateralism
What term is used for the division of political authority among branches of government? a. executive privilege b. federalism c. joint chiefs of staff d. sep
Which activity produces the smallest amount of greenhouse gases?
Unlike kinetic energy, potential energy is
how can u show that two objects are proportional using a graph
the first digit of two different numbers is in a hundred million place . both numbers contain the same digits . can you determine the greater of the two number
Where is most of earths carbon and sulfur
The question is Simplify the Expression. I don't know what they mean 14 - 16 / 8 + 32 x 5