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 electrolysis of water forms H2 and O2. 2H2O Right arrow. 2H2 O2 What is the percent yield of O2 if 10.2 g of O2 is produced from the
What are the example of molecule ?​
simplify(x_2y)(x_2y)_(x+2y)(x+2y)​
find the equation of the line shown
How many ATOMS of boron are present in 3.61 grams of boron trifluoride ?
Calculate the average atomic mass for element X
Find the magnitude and direction of a force between a 25.0 coulomb charge and a 40.0coulomb charge when they are separated by a distance of 30.0cm
how to Calculate the pressure on its base.
Matthew learned how to break dance when he was just seven years old. His older brother taught him the new dance trend when he and his friends heard about it at
mon sujet prefere home work pls help me​