From cd3303dfe2e6f79d8676e84e3ed3b45b7cce7365 Mon Sep 17 00:00:00 2001
From: Brandon Rodriguez <brodriguez8774@gmail.com>
Date: Thu, 23 Jan 2020 01:33:56 -0500
Subject: [PATCH] Implement "Problem 2"

---
 main.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/main.c b/main.c
index fd2075d..1420c89 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");
 }
 
-- 
GitLab