title: Round The Given Number To Nearest Multiple Of 10
signature: round_the_given_number_to_nearest_multiple_of_10 <- function(n) {
test_code: 
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  validate_solution <- function(actual, expected) {
      toString(actual)==toString(expected)
  }
  
  driver <- function(n, expected){
      if (validate_solution(PLACEHOLDER_FN_NAME(n), expected)){
          "PASSED"
      } else{
          "FAILED"
      }
  }
  
  main <- function() {
      cat(sprintf("TEST-0...%s\n",driver(
          31L, 
          30L
      )))
  
      cat(sprintf("TEST-1...%s\n",driver(
          78L, 
          80L
      )))
  
      cat(sprintf("TEST-2...%s\n",driver(
          19L, 
          20L
      )))
  
      cat(sprintf("TEST-3...%s\n",driver(
          36L, 
          40L
      )))
  
      cat(sprintf("TEST-4...%s\n",driver(
          77L, 
          80L
      )))
  
      cat(sprintf("TEST-5...%s\n",driver(
          94L, 
          90L
      )))
  
      cat(sprintf("TEST-6...%s\n",driver(
          86L, 
          90L
      )))
  
      cat(sprintf("TEST-7...%s\n",driver(
          16L, 
          20L
      )))
  
      cat(sprintf("TEST-8...%s\n",driver(
          95L, 
          90L
      )))
  
      cat(sprintf("TEST-9...%s\n",driver(
          2L, 
          0L
      )))
  
  }
  
  main()
source_py: def round_the_given_number_to_nearest_multiple_of_10(n):
      a = ((n // 10) * 10)
      b = (a + 10)
      return (b if ((n - a) > (b - n)) else a)
source_cpp: int round_the_given_number_to_nearest_multiple_of_10(int n) {
    int a = ( n / 10 ) * 10;
    int b = a + 10;
    return ( n - a > b - n ) ? b : a;
  }