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

how many books did Harriet beecher stowe write?
7x+3y=22 4y=20 I need to know how to write this equation out with the answer
which expression is equivalent to x^4-y^4?
Identify the turning point of the function f(x)=x^2-2x+8 by writing its equation in vertex form. Show work
Which of the following is equivalent to 3a + 4b – (–6a – 3b) ? A. 16ab B. –3a + b C. –3a + 7b D. 9a + b E. 9a + 7b
The following statements about carbon dioxide are true EXCEPT a. It can be prepared by the action of acid on CaCO₃ b. It is used in fire extinguishers c. It d
which expression is equivalent to x^4-y^4?
Is STM semantically or acoustically encoded??
Identify the turning point of the function f(x)=x^2-2x+8 by writing its equation in vertex form. Show work
Using the equation y=ax^2+bx+c to represent a parabola on a graph, which statement is true?1) If b is negative, the parabola opens downward2) If a is negative,