Skip to content

Instantly share code, notes, and snippets.

@selva86
Last active February 22, 2020 02:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save selva86/60c8465ce3fe9050c47afc87775a4c78 to your computer and use it in GitHub Desktop.
Save selva86/60c8465ce3fe9050c47afc87775a4c78 to your computer and use it in GitHub Desktop.
# Input
set.seed(100)
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