diff --git a/concepts/numbers/introduction.md b/concepts/numbers/introduction.md index f6ff69b1..3452c44c 100644 --- a/concepts/numbers/introduction.md +++ b/concepts/numbers/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/