title: Program Print Sum Given Nth Term 1
signature: programPrintSumGivenNthTerm1(n) {
test_code: import 'dart:convert';
  
  // SOLUTION CODE
  // ============================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE 
  // ============================================
  bool validateSolution(double actual, double expected){
      return (actual - expected).abs() < 1e-06;
  }
  
  String driver(n, double expected){
      try
      {
          if (validateSolution(PLACEHOLDER_FN_NAME(n), expected)){
              return "PASSED";
          }
          return "FAILED";
      }catch(exception_object){
          return exception_object.runtimeType.toString();
      }
  }
  
  int main() {
  
      print("TEST-0...${driver(
          42, 
          1764.0)
      }");
  
      print("TEST-1...${driver(
          40, 
          1600.0)
      }");
  
      print("TEST-2...${driver(
          67, 
          4489.0)
      }");
  
      print("TEST-3...${driver(
          73, 
          5329.0)
      }");
  
      print("TEST-4...${driver(
          18, 
          324.0)
      }");
  
      print("TEST-5...${driver(
          16, 
          256.0)
      }");
  
      print("TEST-6...${driver(
          74, 
          5476.0)
      }");
  
      print("TEST-7...${driver(
          33, 
          1089.0)
      }");
  
      print("TEST-8...${driver(
          92, 
          8464.0)
      }");
  
      print("TEST-9...${driver(
          22, 
          484.0)
      }");
  
      return 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 );
  }