diff --git a/src/floating_point_numbers/subtraction.md b/src/floating_point_numbers/subtraction.md index cc89f7b..6f4df8c 100644 --- a/src/floating_point_numbers/subtraction.md +++ b/src/floating_point_numbers/subtraction.md @@ -18,7 +18,7 @@ Because of the previously mentioned inaccuracy, the results of subtractions migh ```java ~void main() { ~double x = 5.1; -~// y will be 4.1 +~// y will be -4.1 ~double y = x - 9.2; // z will be -4.199999999999999 double z = y - 0.1; diff --git a/src/loops/challenges.md b/src/loops/challenges.md index 3ed33fc..d8ff896 100644 --- a/src/loops/challenges.md +++ b/src/loops/challenges.md @@ -116,7 +116,7 @@ void main() { Write code that will output each character of `name` on its own line. -So for if `name` is equal to `"Bridget"`, I would expect the following as output. +So if `name` is equal to `"Bridget"`, I would expect the following as output. ```text B @@ -201,6 +201,7 @@ If the initial number is `15` you should have this as output. 10 5 16 +8 4 2 1