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

The area of each square is 25 square unit what's the perimeter
Why do substances with weak intermolecular forces form solids at low melting points?
What is the area of a sheet of binder paper? (Binder paper is 8 inches by 11 inches.)
In which region are most of the cities of Brazil? southern region Amazon lowlands central highlands coastal plain
Why do the Zuckermans forget to take care of the farm?
What is -0.8a-8=0.2a ?
Combine the like terms to make a simpler expression: 8r+7−6r−5
Ignoring personal feelings in the workplace is a big mistake?
Sharita does special typing jobs for scientists. she charges $7 for the first 3 pages and $3 for each additional page of scientific typing. sonia, a biologist,
What can be inferred about how the maori feel about the land they live on? the maori feel in control of their land. the maori feel overwhelmed by their land. th