Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Input
first <- sample(10:20, 15, replace = T) # first sides of RHT
second <- sample(10:20, 15, replace = T) # second sides of RHT
# Final Result updates here
largest_val <- 0
# Calc Hypotenuse
hypotenuse <- function(side1, side2){
sqrt(side1^2 + side2^2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.