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

Imagine you are trying to convince your district's school board that eliminating elective courses for struggling students is a bad idea. Which appeal would most
If your speaker tag is at the end, then you should put a comma in place of a period before your quotation mark. Example: soda," said Joe. True O False
A 6 pound bag of potatoes cost $12.90. How much would a 3.4 pound bag cost?
fill in the blank i need a ___ bleep _____ ___ lil shawty the baddest
Suppose you bought a bond with an annual coupon of 7% one year ago for $1,010. The bond sells for $985 today. A. Assuming a $1,000 face value, what was your tot
Please help me with this please I’ll give you a Brainly list
2(x+4)=10 how do i expand?
Which phrase best defines erosion? cementing bits of rock together chemically breaking rocks apart moving bits of rock from place to place physically breaking r
the social contract theory states what?
can java scanner not take in a negative input?