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 eighth term of a linear sequence is 26. The term-to-term rule is 'add 3 Work out the fourth term of the sequence. Explain the method you used to solve this
What is the name of the segregationist, conservative Democrat, and Alabama Governor who ran for U.S. President on a 3rd party ticket in 1968 and 1972; harangued
Help me please,,,………………….
Why is Newton's law of gravitation called universal law?​
∫∫D(x2 + y2 + 2020)dxdy D: x2 +y2 +2ax ≤ 0 (a > 0)
Help me please………………………
What candidate did Populists support in 1896?
∫∫D(x2 + y2 + 2020)dxdy D: x2 +y2 +2ax ≤ 0 (a > 0)
A line on a graph passes through the point (0, 5). Does the graph represent a proportional relationship?
“Match sentence with correct French word: Nous _______ aller au cinéma. Les enfants ________ faire les devoirs. Tu _________ voyager en Europe. Vous _________ j