Screen Link:
My Code:
is_divisible <- function(divisor, dividend) {
whole <- floor(divisor / dividend)
rem <- divisor - (whole * dividend)
if (rem == 0) {
return(TRUE)
}
else {
return(FALSE)
}
}
div_5731_by_11 <- is_divisible(5731, 11)
Replace this line with your code
What I expected to happen:
What actually happened:
When I use " TRUE", “FALSE” as an object of return, I encountered an error.
Replace this line with the output/error