title: Smallest Of Three Integers Without Comparison Operators
signature: function smallest_of_three_integers_without_comparison_operators(x, y, z)
test_code: using Printf
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  function validate_solution(actual, expected)
      return actual == expected
  end
  
  function driver(x, y, z, expected)
      try
  
          if validate_solution(PLACEHOLDER_FN_NAME(x, y, z), expected)
              return "PASSED";
          end
          return "FAILED";
      catch exception_obj
          return string(Base.typename(typeof(exception_obj)).wrapper);
      end
  end
  
  function main()
      
      result = driver(23, 98, 25, 23);
      @printf("TEST-0...%s\n",result);
      
      result = driver(87, 55, 94, 55);
      @printf("TEST-1...%s\n",result);
      
      result = driver(35, 90, 29, 29);
      @printf("TEST-2...%s\n",result);
      
      result = driver(25, 9, 41, 9);
      @printf("TEST-3...%s\n",result);
      
      result = driver(93, 22, 39, 22);
      @printf("TEST-4...%s\n",result);
      
      result = driver(52, 42, 96, 42);
      @printf("TEST-5...%s\n",result);
      
      result = driver(95, 88, 26, 26);
      @printf("TEST-6...%s\n",result);
      
      result = driver(91, 64, 51, 51);
      @printf("TEST-7...%s\n",result);
      
      result = driver(75, 1, 6, 1);
      @printf("TEST-8...%s\n",result);
      
      result = driver(96, 44, 76, 44);
      @printf("TEST-9...%s\n",result);
      
  end
  
  main()
source_py: def smallest_of_three_integers_without_comparison_operators(x, y, z):
      c = 0
      while (x and y and z):
          x = (x - 1)
          y = (y - 1)
          z = (z - 1)
          c = (c + 1)
      return c
source_cpp: int smallest_of_three_integers_without_comparison_operators(int x, int y, int z) {
    int c = 0;
    while ( x && y && z ) {
      x --;
      y --;
      z --;
      c ++;
    }
    return c;
  }