title: Round The Given Number To Nearest Multiple Of 10
signature: def roundTheGivenNumberToNearestMultipleOf10(n: Int) = {
test_code: import scala.collection.mutable.HashMap
  import scala.collection.immutable.HashSet
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  
  // TESTING CODE 
  // ============================================
  def validateSolution(actual: Int , expected: Int): Boolean = {
      actual.toString == expected.toString
  }
  
  def driver(n: Int, expected: Int): String = {
      try {
          if (validateSolution(PLACEHOLDER_FN_NAME(n),expected)) {
              "PASSED"
          } else{
              "FAILED"
          }
      }catch{
          case e: Exception => {e.getClass.getName}
      }
  
  }
  object QuestionEvaluator extends App {
  
      println(s"TEST-0...${driver(
        31, 
        30    
      )}")   
  
  
      println(s"TEST-1...${driver(
        78, 
        80    
      )}")   
  
  
      println(s"TEST-2...${driver(
        19, 
        20    
      )}")   
  
  
      println(s"TEST-3...${driver(
        36, 
        40    
      )}")   
  
  
      println(s"TEST-4...${driver(
        77, 
        80    
      )}")   
  
  
      println(s"TEST-5...${driver(
        94, 
        90    
      )}")   
  
  
      println(s"TEST-6...${driver(
        86, 
        90    
      )}")   
  
  
      println(s"TEST-7...${driver(
        16, 
        20    
      )}")   
  
  
      println(s"TEST-8...${driver(
        95, 
        90    
      )}")   
  
  
      println(s"TEST-9...${driver(
        2, 
        0    
      )}")   
  
  }
  
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;
  }