69 std::srand(std::time(
nullptr));
70 std::ios_base::sync_with_stdio(
false);
72 std::cout <<
"Testing..." << std::endl;
73 for (
int i = 0; i < 20; i++) {
74 int a = std::rand() % 20 - 10;
75 int b = std::rand() % 20 - 10;
76 std::cout << std::endl <<
"Calculating " << a <<
"^" << b << std::endl;
80 std::cout <<
"------ " << a <<
"^" << b <<
" = "