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

How was the dollar affected when the U.S adopted the gold standard?
Fix the one word that is used incorrectly. Apart of the Millses donation will go toward winter clothing for people in need and the rest will go toward providing
Which of the following is the function of a protein?
how do you think prejudice emerges and what are the effects of it?
convert 9.6 hectometets to dekameters
What percent of 108 is 89? 82.4% O 0.66% O 121.3% O 152.4%
Is x greater than, less than, or equal to 73, degrees?
What are the solutions to the quadratic equation below? X^2 +13x + 40 =0 A. X = -10 and x = 4 B. X= 10 and X = 4 C. X = 8 and x = -5 o D. X = -8 and x = -5
hewo people of da wowld
Who is at fault for what happens, Sula or Nel? Or perhaps both? Explain. Who is at fault for what happens, Sula or Nel? Or perhaps both? Explain.