-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAverages.py
More file actions
25 lines (19 loc) · 767 Bytes
/
Averages.py
File metadata and controls
25 lines (19 loc) · 767 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Made by Jordan Paglione on 6/24/15
# AVERAGES
# Print what the program does
print("This program calculates the average of three numbers")
# Get the first number
first_number = input("Enter the first number: ")
# Convert that into a floating point number
first_number = float(first_number)
# Get the second number
second_number = input("Enter the second number: ")
# Convert that into a floating point number
second_number = float(second_number)
# Get the third number
third_number = input("Enter the third number: ")
# Convert that into a floating point number
third_number = float(third_number)
# Get the average of the three numbers and print it
print("The average of the three numbers is", (third_number + second_number + first_number)/3)
# End of program