tracks/r/exercises/grains/example.R in trackler-2.1.0.21 vs tracks/r/exercises/grains/example.R in trackler-2.1.0.22

- old
+ new

@@ -1,16 +1,16 @@ square <- function(n) { - + if (n > 0 & n < 65) { - 2^(n-1) + 2 ^ (n - 1) } else { stop("Input value should be between 1 and 64") } - + } total <- function() { - - sum(2^(0:63)) - + + sum(2 ^ (0:63)) + }