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

Write the balanced equation and determine the information requested. Don't worry about state symbols in these reactions. The number of moles and the mass (in mi
Correct answers please?? I can't figure it out
Listen Review section 3.6 to answer this question: The cabinet represented in Fig. 3.26 and 3.27, created by Daniel Pabst, was associated with: the Ming Dynasty
An aquarium tank can hold 5400 liters of water. There are two pipes that can be used to fill the tank. The first pipe alone can fill the tank in 45 minutes. The
what happened in 1864
4. Find only the two exponential polynomials 3x²- x-4. And check the correctness of the relationships between digits and coefficients:​
Consider: 2
convex or concave polygon?
Determine the range of the fu
Determine the range of the fu