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

2 ( 3x + 4) + 3 ( ) + __( ) + + + - +
explain in brief the gandhian principle as provided in the directive principle of the state policy?​
The shape of y = 1 x shifted left 5 units and shifted down 6 units.
What is the median of these figure skating ratings 5.0,6.0,7.0,8.0,9.0,10.0
Type the integer that makes the following addition sentence true for Brainliest!!!!!!
A car reaches the interstate and increases its velocity from 25 m/s to 45 m/s in 5 s. a. What is the car's acceleration? b. How far did the car travel?
How can Australians population increase? Why is South Koreas population larger than Australia’s when South Koreans land mass is much smaller?
-8'den buyuk en kucuk tam sayi ile 9'dan kucuk en buyuk tam sayinin toplami kactir?
Which value of x makes the equation true? -18 + 3x + x = -2(2x - 25)a. x= 11.3b. x= 4.5c. x= 8.5d. x= -4.5​
6. These lines give a greater sense of depth to an object. 1.)Contour 2.)Hatching/Cross Hatching 3.)Outline