diff --git a/main.c b/main.c index fd2075d1af947232c886a344df22864da58e7055..1420c8985b4e4d0fe15e66da7d2e6b703456a7fa 100644 --- a/main.c +++ b/main.c @@ -45,7 +45,7 @@ int main(int argc, char* argv[]) { /** * Problem 1 * - * Declares a float of 2.5. + * Declares a float of "2.5". * Then prints to ten decimal places. */ void problem_1() { @@ -64,14 +64,18 @@ void problem_1() { /** * Problem 2 * - * + * Declares a float of "-1.0/10.0". + * Then prints to ten decimal places. */ void problem_2() { printf("\n\nProblem 2 start.\n\n"); printf("Expected Output:\n"); - printf("\n"); + printf("-0.1000000000\n"); printf("Actual Output:\n"); + float test_float = -1.0/10.0; + printf("%.10lf\n", test_float); + printf("\nProblem 2 end.\n"); }