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

The sum of three numbers is 71. The third number is 2 times the second. The first number is 7 more than the second. What are the numbers?
Drag the correct number of pieces to show how to find the area of the shaded figure in two different ways. Pieces can be rotated to fit.
Evolution of new traits is possible because of
name one type of field besides text that would have a field size property
Which can a reader learn from "Home Front Diary" as opposed to "Sugihara"? (i will give brainliest) A. how families responded to the war B. how difficult life
Find 3 ratios that are equivalent to the given ratio. 15 to 20
please help asap, click on pic
6x+3y=24 3x-3y=-6 Solve the system using elimination (explain steps)
7th-grade math help me, please :(
what should writers do if they plan to use a term often but aren't sure if the reader is familiar with the abbreviation? a. write out the term followed by the