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 is 3 4ths of 3,600?
What is greater 500 seconds or 8 minutes?
Help Por FAvOr How many solutions does the equation have? 2(2x+5)=4(x+3) A. one solution B. infinite solutions C. no solution
is it true that the size of a population increases if the number of individuals added to the population is equal to the number of individuals leaving the popula
expand and simplify (x+7)(x-7)
__________ is economic rivalry among businesses selling similar products.
A number was increased by 2% to £78.03 What was the number before this increase?
An awning covers a window that is 4 feet high. When the awning is open ,it extends 2 feet from the base of the window .find the slope of the awning .
Which emperor legalized Christianity in the Roman Empire? A. Constantine B. Caligula C. Octavian D. Hadrian
which Expression is equivalent to 8x - 2y + x + x