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

3. Which of the following is/are true? a. The brain is composed of nerve cells called neurons. b. Neurons are used by the brain and nervous system to f
How do I solve 8(v+2)-4v=2(2v+1)-6
mathscan anyone show working out to how u would do this btw it's 3 marks
For a pepperidge farm production facility, managers and employees would be
Two waves are traveling through the same container of air. Wave A has a wavelength of 2.0m. Wave B has a wavelength of 0.5m. The speed of wave B must be _______
Based upon the valence numbers of the elements magnesium (2) and hydrogen (1), predict how many covalent bonds would form between these atoms to achieve the ful
What were northerners who didn't want to see slavery spread called?
Please help.... Which one of the following means “have you had a shot” in Spanish A) te pones una inyeccion B) eres una inyeccion C) Debes ponerte una inyecci
What are the factors of production?
Where in the cell are receptors for cholesterol derived chemical messengers typically located?