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

PLEASE HELP ASAP The volume of a rectangular prism is expressed as 36x + 60x² + x-20. Its length is (3x + 4) and its width is (6x + 5). What is the height of th
Simplify. 10^-3 Write your answer as a fraction, using the / symbol.
According to the Myers-Briggs Type Indicator, we make decisions by either thinking or a. feeling b. judging C. perceiving d. sensing
Which function, h(x), results when f(x) = 2x2 – 6 is subtracted from g(x) = 2x2 + 5x - 1?​
Why do the Caddo have permanent tall cone-shaped Grass Hut houses?
Define the following terms: - tapestry - monument - portrait
A rectangle is drawn so that the width is 1 feet shorter than the length. The area of the rectangle is 56 square feet. Find the length of the rectangle.
1.23 grams to pounds
what is fall line feature ​
When lifting something heavy, focus on lifting with your back not your legs. A. True B. False