diff --git a/concepts/numbers/about.md b/concepts/numbers/about.md index fad334057..35499fc47 100644 --- a/concepts/numbers/about.md +++ b/concepts/numbers/about.md @@ -72,11 +72,11 @@ people += 2; eggs += 3 * people; // eggs is now 6 ``` -Vairables `people` & `eggs` are initialized to `0`. -Then, we add integer value `2` over the existing value `0` of the variable `people` and assigne it back to `people`. +Variables `people` & `eggs` are initialized to `0`. +Then, we add integer value `2` over the existing value `0` of the variable `people` and assign it back to `people`. `people` becomes `2` now. Later, we add `3` eggs for each person, which turns out to be `6` eggs in total. -Now add this `6` to existing value `0` of the variable `eggs` and assigne it back to `eggs`. +Now add this `6` to existing value `0` of the variable `eggs` and assign it back to `eggs`. `eggs` will be `6` now. The equivalent expression would be `people = people + 2` and `eggs = eggs + (3 * people)`. @@ -106,4 +106,4 @@ Including `0`, this sets the biggest and smallest `int` numbers as `-2^31` and ` Floating point numbers are usually implemented using 15 decimal places of precision, but will vary in representation based on the host system. ~~~~ -[cpp_numerical_bases]: https://cplusplus.com/doc/hex/ \ No newline at end of file +[cpp_numerical_bases]: https://cplusplus.com/doc/hex/ diff --git a/exercises/concept/freelancer-rates/.docs/introduction.md b/exercises/concept/freelancer-rates/.docs/introduction.md index f6ff69b19..3452c44c5 100644 --- a/exercises/concept/freelancer-rates/.docs/introduction.md +++ b/exercises/concept/freelancer-rates/.docs/introduction.md @@ -72,13 +72,13 @@ people += 2; eggs += 3 * people; // eggs is now 6 ``` -Vairables `people` & `eggs` are initialized to `0`. -Then, we add integer value `2` over the existing value `0` of the variable `people` and assigne it back to `people`. +Variables `people` & `eggs` are initialized to `0`. +Then, we add integer value `2` over the existing value `0` of the variable `people` and assign it back to `people`. `people` becomes `2` now. Later, we add `3` eggs for each person, which turns out to be `6` eggs in total. -Now add this `6` to existing value `0` of the variable `eggs` and assigne it back to `eggs`. +Now add this `6` to existing value `0` of the variable `eggs` and assign it back to `eggs`. `eggs` will be `6` now. The equivalent expression would be `people = people + 2` and `eggs = eggs + (3 * people)` -[cpp_numerical_bases]: https://cplusplus.com/doc/hex/ \ No newline at end of file +[cpp_numerical_bases]: https://cplusplus.com/doc/hex/