diff --git a/main.c b/main.c index eafafb5e2263e99c119a8a290f3e79a44ec31a83..c343babb3701cc4ecf3b64c22bb799e7809dc9a5 100644 --- a/main.c +++ b/main.c @@ -23,6 +23,7 @@ void problem_2(); void problem_3(); void problem_4(); void problem_5(); +void problem_6(); /** @@ -37,6 +38,7 @@ int main(int argc, char* argv[]) { problem_3(); problem_4(); problem_5(); + problem_6(); printf("\n\nTerminating program.\n"); } @@ -127,13 +129,52 @@ void problem_4() { /** * Problem 5 * - * + * Declare an int of "30000*30000". + * Print to console. + * Declare an int of "40000*40000". + * Print to console. + * Declare an int of "50000*50000". + * Print to console. + * Declare an int of "60000*60000". + * Print to console. + * Declare an int of "70000*70000". + * Print to console. */ void problem_5() { printf("\n\nProblem 5 start.\n\n"); printf("Expected Output:\n"); - printf("\n"); + printf("900000000\n"); + printf("1600000000\n"); + printf("2500000000\n"); + printf("3600000000\n"); + printf("4900000000\n"); printf("Actual Output:\n"); + int test_int = 30000*30000; + printf("%d\n", test_int); + test_int = 40000*40000; + printf("%d\n", test_int); + test_int = 50000*50000; + printf("%d\n", test_int); + test_int = 60000*60000; + printf("%d\n", test_int); + test_int = 70000*70000; + printf("%d\n", test_int); + printf("\nProblem 5 end.\n"); } + + +/** + * Problem 6 + * + * + */ +void problem_6() { + printf("\n\nProblem 6 start.\n\n"); + printf("Expected Output:\n"); + printf("\n"); + printf("Actual Output:\n"); + + printf("\nProblem 6 end.\n"); +}