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

A circular pool is ten feet in diameter and five feet deep. What is its volume, in cubic feet?
What is the slope of any line parallel to the line 8x + 9y = 3 in the standard (x,y) coordinate plane?
What is 1997 from 2014????????????
Can someone please help me ?
Why were people from Africa brought to Georgia?
The significance of the Open Door Policy for the United States lay in its (A) providing a use for the Philippines as a way station between China and the United
Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
USE A NUMBER LINE TO FIND 8/9 / 8/45.
What is 1997 from 2014????????????
Please I have the answers I just want to double check them and Solvekey: B=42  A=93  N=29  X=361. (b-7)(2b-7)2. (4a-4)(5a-7)3. (5n-6)(4n+7)4. (2n=8)(8n+3)5. (6x