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

in the wheel of woohoo game I'm taking a chance on a spinner with 20 outcomes I will win the boogie board if it lands on the number one how likely is it to land
find the difference of 3/4 and 1/28.
Me.Pierce bought a camera that costs $450. In addition, she had to pay 4% sales tax. How much did Ms.Pierce pay for the camera?
The graph below shows a probability distribution. The answer choices are below. Thanks! :)
Discuss the kinetics or freezing and solid formation by crystallization
Which statement is true regarding the graphed functions? f(0) = 2 and g(–2) = 0 f(0) = 4 and g(–2) = 4 f(2) = 0 and g(–2) = 0 f(–2) = 0 and g(–2) = 0
help pls it’s due tomorrow helpp
Solve for x 3x^2-6x=-3 A) x=1/3 or x=1 B) x=1 or x=-1 C) x=1 D) x=-1/3 or x=-1 Is it a,b,c,or d please help!!!
Which factors are mostly likely to cause an unintentional event to occur?
If a house is 36 inches how many yards are there