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

What all the multiples of 81?
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
The inner and outer Radii of a cylindrical pipe are 5 cm and 4 cm respectively. find the area of cross section of the pipe.
The inner and outer Radii of a cylindrical pipe are 5 cm and 4 cm respectively. find the area of cross section of the pipe.
What all the multiples of 81?
What were the contributions of the Harappan civilization?
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
josh wanted to buy a bicycle but didn't have enough money. After josh told his troubles to sam slick, sam said,"I can fix that. see that fence? each time you ju
a lunch bill including tax, is divided among you and 5 friends. everyone pays less than $8.75. write and solve an inequality that describes the total amount of