fork download
  1. # your code goes here
  2. gcd <- function (a, b) {
  3. if (b==0)
  4. return a
  5. else {
  6. return gcd(b, a%%b)
  7. }
  8. }
  9.  
  10. print(gcd(153, 84)
  11.  
Success #stdin #stdout #stderr 0.22s 39176KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: unexpected symbol in:
"if (b==0)
return a"
Execution halted