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

PLZ HELP ASAP WITH TIS FOR BRAINLIEST ANSWER!!
veintisiete - once =​
what is 327 divided by 55
A rock has a density of 4.56 g/mL. If it weighs 235 g, what is its volume?
The diameter of an atom is approximately 1 * 10 ^ - 10 * m . What is the diameter in decimeters?
Why do cells of the human body look different from one another?
In a morning walk three persons step off together their steps measure 80cm,85cm and 90cm respectively. What is the minimum distance each should walk so that all
Problem 1: Solve the systems of equations by the method of your choice. 2x+y=5
The four main types of macromolecules found in organisms are
What is the value of x in 3x-9