title: Find Harmonic Mean Using Arithmetic Mean Geometric Mean
signature: pub fn find_harmonic_mean_using_arithmetic_mean_geometric_mean(a: i32, b: i32) -> f64 {
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: f64, expected: f64)->bool{
  return (actual - expected).abs() < 1e-09
  }
  pub fn driver(a: i32, b: i32, expected: f64)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(a, b), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        54, 83, 
        65.43065693430657
      ));
      
      println!("TEST-1...{}", driver(
        42, 56, 
        48.0
      ));
      
      println!("TEST-2...{}", driver(
        63, 12, 
        20.16
      ));
      
      println!("TEST-3...{}", driver(
        19, 76, 
        30.4
      ));
      
      println!("TEST-4...{}", driver(
        41, 50, 
        45.054945054945065
      ));
      
      println!("TEST-5...{}", driver(
        7, 26, 
        11.030303030303031
      ));
      
      println!("TEST-6...{}", driver(
        39, 42, 
        40.444444444444436
      ));
      
      println!("TEST-7...{}", driver(
        11, 64, 
        18.773333333333333
      ));
      
      println!("TEST-8...{}", driver(
        96, 81, 
        87.86440677966101
      ));
      
      println!("TEST-9...{}", driver(
        15, 54, 
        23.47826086956522
      ));
      
  }
source_py: def find_harmonic_mean_using_arithmetic_mean_geometric_mean(a, b):
      AM = ((a + b) / 2)
      GM = math.sqrt((a * b))
      HM = ((GM * GM) / AM)
      return HM
source_cpp: double find_harmonic_mean_using_arithmetic_mean_geometric_mean(int a, int b) {
    double AM, GM, HM;
    AM = ( a + b ) / 2;
    GM = sqrt ( a * b );
    HM = ( GM * GM ) / AM;
    return HM;
  }