Exercise 05-16:

Run Program 5.1 for the following values:
501, 745, 384, 2, 7, and 1.

Answer:

##############################################################################
# Python From Scratch
# Author: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2025 - LogiKraft 2025
# Site: https://pythonfromscratch.com
# ISBN: 978-85-7522-949-1 (Paperback), 978-85-7522-950-7 (hardcover), 978-85-7522-951-4 (ebook)
#
# File: chapter 05/exercise-05-16.py.py
##############################################################################
# The program should work normally with the values requested by the exercise.
Click here to download the file