title: Program Print Sum Given Nth Term 1
signature: pub fn program_print_sum_given_nth_term_1(n: i32) -> f32 {
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: f32, expected: f32)->bool{
  return (actual - expected).abs() < 1e-06
  }
  pub fn driver(n: i32, expected: f32)->String{
      if validate_solution(PLACEHOLDER_FN_NAME(n), expected) {
        return "PASSED".to_string();
      };
      return "FAILED".to_string();
  
  }
  
  fn main() {
      println!("TEST-0...{}", driver(
        42, 
        1764.0
      ));
      
      println!("TEST-1...{}", driver(
        40, 
        1600.0
      ));
      
      println!("TEST-2...{}", driver(
        67, 
        4489.0
      ));
      
      println!("TEST-3...{}", driver(
        73, 
        5329.0
      ));
      
      println!("TEST-4...{}", driver(
        18, 
        324.0
      ));
      
      println!("TEST-5...{}", driver(
        16, 
        256.0
      ));
      
      println!("TEST-6...{}", driver(
        74, 
        5476.0
      ));
      
      println!("TEST-7...{}", driver(
        33, 
        1089.0
      ));
      
      println!("TEST-8...{}", driver(
        92, 
        8464.0
      ));
      
      println!("TEST-9...{}", driver(
        22, 
        484.0
      ));
      
  }
source_py: def program_print_sum_given_nth_term_1(n):
      return math.pow(n, 2)
source_cpp: int program_print_sum_given_nth_term_1(long n) {
    return pow ( n, 2 );
  }