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

how many atoms are there in 5.7 mol of hafnium?
(4+2n^3) + (5n^3+2)
What stage of the general adaptation syndrome (gas) corresponds to the sympathetic adrenal medullary (sam) system?
What is the meaning of internal relationships?
Which statement is true about nobles
What are corresponding segments??
what is non-violent resistance
Suppose we pick 3 students at random from a class with 10 boys and 15 girls. let x be the number of boys selected and y be the number of girls selected. find e(
During a second infection, the immune system activates _____ that were created during the first exposure.
Solve Thanks :))) will mark as brainliest if you get the right answer :)