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

Find the discriminant of the equation. x^2 + 3x - 4 = 0
14.99n + 4.99 represent the cost of n CDs. Total cost for ordering 3 CDs
There is only one kind of image file format. a. True b. False
Verbals ending in -ing and used only as nouns are _____. participles infinitives gerunds inflections
Which department did the US government create immediately after the 9/11 terrorist attacks?
Solution to the System of linear equations below : 2x+y=-3 3x+2y=-7
Round this weights to one decimal place 31.61 kg 2.25 kg. 23.29 g Can you help me guys with this question?
7/10 write the fraction of the sum of fractions three different ways
The term suffrage refers to the A. right to vote. B. freedom to make one's voice heard. C. Soviet labor camps. D. extermination of Jews under Hitler
The graph shows the distance, y, in miles, of a moving motorboat from an island for a certain amount of time, x, in hours: What is the speed of the motorboat? 3