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

The share program offers citizens groceries in exchange for what?.
I need help desperately thank you
A system of equations is shown below. 3x-2y=7 9x-6y=k
Substance that makes a plant woody.
What is the first group of offspring from a cross of parents that differ in some trait called?.
How has Anne has grown over the course of the diary. Give two or three observations about how Anne has changed and explains why these changes are important.
Find the slope of the line passing through the points (8,-3) and (4,-1)
Please help, ASAP!!! Will mark brainliest! Serena will write a paper based on this research question: What were some of Flo Hyman’s notable traits and achieveme
Where did many of the vaudeville stars of the early 20th century, like W.C. Fields and Mae West, go to work to continue their careers after the popularity of va
A federal form of government is one in which the national government shares sovereign power with.