Tuesday, April 23, 2019

Find Largest of Three Numbers Using Python

A program that will ask the user to give three numbers and then the program will find the largest of three numbers using elif statement using Python programming language.

I am currently accepting programming work, IT projects, school and application development, programming projects, thesis and capstone projects, IT consulting work, computer tutorials, and web development work kindly contact me in the following email address for further details.  If you want to advertise on my website kindly contact me also in my email address also. Thank you.
My email address is the following jakerpomperada@gmail.com, jakerpomperada@aol.com, and jakerpomperada@yahoo.com.

My mobile number here in the Philippines is 09173084360.

My telephone number at home here in Bacolod City, Negros Occidental Philippines is  +63 (034) 4335675.

Here in Bacolod I also accepting computer repair, networking and Arduino Project development at a very affordable price.

My personal website is http://www.jakerpomperada.com


Program Listing

# Rollyn M. Moises and Jake R. Pomperada
# largest.py
# February 6, 2019  Wednesday
# Bacolod City, Negros Occidental
print();
print("\t Find Largest of Three Numbers ");
print();
a = int(input("\tEnter First  Value : "));
b = int(input("\tEnter Second Value : "));
c = int(input("\tEnter Third Value : "));
print();
if (a > b and a > c):
          print("\t{0} is Greater Than both {1} and {2}.". format(a, b, c))
elif (b > a and b > c):
          print("\t{0} is Greater Than both {1} and {2}.". format(b, a, c))
elif (c > a and c > b):
          print("\t{0} is Greater Than both {1} and {2}.". format(c, a, b))
else:
          print("Either any two values or all the three values are equal.")
print();
print("\tEND OF PROGRAM");



No comments:

Post a Comment