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

Describe how cells are organized into larger and larger groups to help living things survive
why was a formal education more important for urban Americans than rural Americas
Which expressions represent the distance between the two points? Choose all answers that are correct. The number line shows two points with coordinates negati
how did Assyrian,Babylonian and Persian rulers use technology to expand and unite their empires?
for ratios what would 45 out of 60 be as a fraction?
what set off a European scramble for African territories
how did cyrus the great hold his growing empire together
name the 3 states that border new york to the east
what is the slope of the line represented by the equation 4x+3y=12
What international event led to the Red Scare?