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

Nyah evaluated the expression for 3x + 2 for x = 5 as shown: 3x + 2 = 35 + 2 = 37. What was Nyah's mistake? What is the correct value if 3x + 2 for x =5
Read the passage below, looking for the following 10 mistakes…Rewrite the paragraph, making the necessary revisions so that the paragraph has correct grammar.
can a body be regarded in a rest as well as at motion in same te
Lines of longitude run from_______ and are called
9) The most important reason for the growth of labor unions in the latter half of the 19th century was A) the passage of the Sherman Anti-trust Act. B) the
A person can become politically socialized by
Describe how the industrial revolution affected the rose available to women in the 19th century
Solve for z : 4z-6/4=3z+1
According to the rule of 72 if Beth by invest $200 and $1300 into two separate accounts with the same interest rate what amount will double faster
Ann took a taxi home from the airport. The taxi fare was $2.10 per mile, and she gave the driver a tip of $5. Ann paid a total of $49.10. Write an equation to