title: Middle Of Three Using Minimum Comparisons 1
signature: pub fn middle_of_three_using_minimum_comparisons_1(a: i32, b: i32, c: 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(a: i32, b: i32, c: i32, expected: i32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b, c), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        43, 24, 7, 
        24
      ));
      
      println!("TEST-1...{}", driver(
        76, 54, 66, 
        66
      ));
      
      println!("TEST-2...{}", driver(
        57, 5, 40, 
        40
      ));
      
      println!("TEST-3...{}", driver(
        10, 13, 4, 
        10
      ));
      
      println!("TEST-4...{}", driver(
        59, 47, 56, 
        56
      ));
      
      println!("TEST-5...{}", driver(
        92, 14, 50, 
        50
      ));
      
      println!("TEST-6...{}", driver(
        49, 62, 65, 
        62
      ));
      
      println!("TEST-7...{}", driver(
        16, 95, 12, 
        16
      ));
      
      println!("TEST-8...{}", driver(
        33, 41, 90, 
        41
      ));
      
      println!("TEST-9...{}", driver(
        66, 63, 46, 
        63
      ));
      
  }
source_py: def middle_of_three_using_minimum_comparisons_1(a, b, c):
      if (a > b):
          if (b > c):
              return b
          elif (a > c):
              return c
          else:
              return a
      elif (a > c):
          return a
      elif (b > c):
          return c
      else:
          return b
source_cpp: int middle_of_three_using_minimum_comparisons_1(int a, int b, int c) {
    if ( a > b ) {
      if ( b > c ) return b;
      else if ( a > c ) return c;
      else return a;
    }
    else {
      if ( a > c ) return a;
      else if ( b > c ) return c;
      else return b;
    }
  }