12 lines
No EOL
309 B
Python
12 lines
No EOL
309 B
Python
# Runestone.Academy thinkcspy course
|
|
# Chapter 5
|
|
# Problem 16
|
|
|
|
import math
|
|
|
|
a = float(input('What is the length of the first side of the triangle?'))
|
|
b = float(input('What is the length of the second side of the triangle?'))
|
|
|
|
c = math.sqrt(a*a + b*b)
|
|
|
|
print('The hypotenuse of this triangle with is', c, '.') |