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

Three times a number is no less than negative six.
Which Expression Is Equivalent to 486-9+6+3^3•2
Which one of the following fractions is equivalent to 1/2? a. 1/4 b. 2/8 c. 2/4 d. 1/
square root of negative 121
What happens to the water after it reaches the leaves of a plant?
The influence of Mohandas Gandhi be seen most clearly in King’s rhetoric in his
(5x^2-17x-15)/x-4 divide and write it in form
Wayne needs to drive 470 miles to reach Milwaukee. Suppose he drives at a constant speed of 50 miles per hour. Which function represents Wayne’s distance in mil
The force involved in a collision is 1.0 × 102 newtons. The duration of the impact is 1.0 × 10-4 seconds. What is the value of the change in momentum?
solve the following system of equations using any method 10x 2y 7z=22 6x 6y 5z=−14 x 4y 2z=−14