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! It’s Counting Outcomes.
Make a set of numbers that use all the digits from 1 to 9, once and once only.1, 2, 3, 4, 5, 6, 7, 8, 9.
3. Lines 39-44: how does the language in this passage help to elaborate on what Powell is like a person?
What did Napoleon do to ensure his goals were met?
Which of the following is the correct definition of nuclear energy? A. energy resulting from the flow of charged particles, such as electrons or ions B. en
after the civil war, what were some challenges african americans faced in their pursuit of freedom and life as free men and woman?
Write the quadratic equation y = x^2 - 6x + 7 in vertex form
WHAT IS 10/11 × 3/7 × 1/2???​
What did the Industrial Revolution have to do with conquering Africa?
Which city has the highest population density? A) City A with a population of 25,000 and an area of 5 sq miles. B) City B with a population of 12,000 and an