Ask Question
5 December, 22:39

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!

+4
Answers (1)
  1. 6 December, 02:11
    0
    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
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a program which reads an integer from input using pancakes = int (input ()). If pancakes is more than 3, print out Yum! and if ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers