# LargeintWithMath.py Copyright (c) Kari Laitinen # http://www.naturalprogramming.com # 2006-05-28 File created. # 2022-12-27 Converted to Python 3. # This program works like Largeint.py in javafiles2, # but this one is implemented by using the built-in max() function. print( "\n This program can find the largest of three" \ "\n integers you enter from the keyboard. \n" ) print( " Please, enter the first integer: ", end="" ) first_integer = int( input() ) print( " Please, enter the second integer: ", end="" ) second_integer = int( input() ) print( " Please, enter the third integer: ", end="" ) third_integer = int( input() ) found_largest_integer = max( first_integer, second_integer, third_integer ) print( "\n The largest integer is %d." % found_largest_integer )