with a sentinel-controlled while loop, ask the user for numbers and print out the largest of the numbers given by the user without using the built-in function max.
Added by Juan Manuel L.
Close
Step 1
Initialize a variable `largest` to store the largest number entered by the user. Set it to a very small value initially, like -infinity. Show more…
Show all steps
Your feedback will help us improve your experience
Lien Le and 92 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Could you help me in python to write a program that receives a series of numbers from the user and allows the user to press the enter key to indicate that he or she is finished providing inputs. After the user presses the enter key, the program should print the largest number, smallest number, and average of all the numbers.
Shelayah R.
Write a Python Program to Find the Largest Among Three Numbers
Haricharan G.
Liam H.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD