Ask 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 pancakes is not more than 3, print out Still hungry!

+4
Answers (1)
  1. 20 January, 12:06
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers