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

Aiden had 55 minutes to finish a quiz. He finished early and had a read his book while the rest of the class finished their quiz. How long did it take Aiden to
Help I literally do not know what too do.
What is it called when a government system divides the power between a national government and states?
The value of x in the expression 2x + 3 = 13 is​
Pleasee help me pleaseeeeeeeeeeee i need help
DINOSAUR DICHOTOMOUS KEY Pls identify the dinosaurs below
What is the momentum of a 1,700 kg car travelling in a straight line at 13 m/s?
In ΔEFG, e = 4.7 inches, f = 4.8 inches and g=3.6 inches. Find the measure of ∠E to the nearest 10th of a degree.
why the holocaust happen
what is the variables on both sides equations? 3x - 6 = 7x + 1​