title: Round The Given Number To Nearest Multiple Of 10
signature: pub fn round_the_given_number_to_nearest_multiple_of_10(n: i32) -> i32 {
test_code: use std::collections::HashMap;
  use std::collections::HashSet;
  use std::cmp::*;
  use std::collections::*;
  use std::fmt::*; 
  
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  pub fn validate_solution(actual: i32, expected: i32)->bool{
  return actual==expected
  }
  pub fn driver(n: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        31, 
        30
      ));
      
      println!("TEST-1...{}", driver(
        78, 
        80
      ));
      
      println!("TEST-2...{}", driver(
        19, 
        20
      ));
      
      println!("TEST-3...{}", driver(
        36, 
        40
      ));
      
      println!("TEST-4...{}", driver(
        77, 
        80
      ));
      
      println!("TEST-5...{}", driver(
        94, 
        90
      ));
      
      println!("TEST-6...{}", driver(
        86, 
        90
      ));
      
      println!("TEST-7...{}", driver(
        16, 
        20
      ));
      
      println!("TEST-8...{}", driver(
        95, 
        90
      ));
      
      println!("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;
  }