Okay, pretty sure I got my formula right... don't think I quite understand how to call on methods, howcome mine isn't working?
fun main() {
println("Enter Width of the triangle")
readln()
println("Enter Height of the triangle")
ComputeMethods().hypotenuse(readln().toDouble())
}
class ComputeMethods(){
fun hypotenuse(width: Int, height: Int) {
val triangle = width.toDouble().pow(2) + height.toDouble().pow(2)
val formula = "$triangle"
println(formula)
}
}