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

what was the greek civilization
The equations y = -4x - 1 and y =- 4x + 2 represent what types of lines?
F is the set of positive factors of 24 and G is the set of perfect squares less than 12. Is the statement F to G true or false?
Which of these lines from Shakespeare’s Twelfth Night reveals that Viola would use a different method to woo the person she loved than that used by Orsino? VIOL
PLEASE HURRY I NEED HELP SOS!!!!!!!! (15 POINTS) solve sinø+1=cos2ø on the interval 0≤ø<2π
y = f(x) = -34Find f(x) when x = 0.​
which are perfect square trinomials? select two options A. x^2 -9 B. x^2 -100 C. x^2 - 4x + 4 D. x^2 +10x +25 E. x^2 +15x + 36​
The sum of 18 +45 is a multiple of which sum? A. (3+9) B. (2+5) C. (1+3) D. (9+9)
Find the geometric mean of 9 and 12.
how many stars our thier in the universe​