Add Exercise files

This commit is contained in:
lolabird 2023-08-21 20:03:55 -06:00
commit 47b74f6a04
9 changed files with 154 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# 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, '.')