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 two main philosophies in state politics are _____. A)liberalism B)rationalism C)materialism D)conservatism
• Founded a Roman Catholic religious order known as the Jesuits • Made a Catholic saint on March 12, 1622 by Pope Gregory XV • Fought against the Protestant Ref
Which best describes what occurred during the détente era?
how is a new cell resulting from mitosis like the original
Some single-celled organisms that make copies of themselves through mitosis. Which decribes the function of the cell cycle in such single-celled organisms?
What features distinguish Platyhelminthes from Annelida?
Factor completely. 15a² + 55a - 20 A. 5(3a² + 11a - 4) B. 5(a + 4)(3a - 1) C. (5a + 2)(3a - 10) D. (5a + 4)(3a - 5)
can someone please help me...f=kry, solve for y
what is the geometric mean of 4 and 18
During diffusion which way do the substances move?