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

Samantha, a teenager, has a 69-year-old grandmother who lives with her. Despite the fact that Samantha's grandmother is very active and flexible in her thoughts
Why does the magician give Ah Fo three wishes? The magician believes that Ah Fo is a wise man who will use the wishes wisely. The magician is grateful that Ah F
I am student of languages and I need know if my answer are correct. Help me please!
the difference of ages of ammu and appu is 6. two times the age of appu is 8 more than the age of ammu. find their ages
Which number is an integer? 1 O 3 4 O 0 O 2.3 O
How do you think the formal separation of the Roman Catholic Church and the Eastern Orthodox Church would affect the future development of Europe?
Why did European diseases kill so many Native Americans?​
Can the birthrate or death rate of a population of organisms be greater than 1? Explain your answer.
Is blue hole proper noun?
Tammy scored 88, 72, 44 points on her first three test. What must she score in her last test to get at least an average of 70?