09-14-2020, 09:53 PM
We have learned how to divide numbers before, but the results may be unexpected sometimes,
because the result of 4 / 2 will be 2 and the result of 3 / 2 will be 1.5.
In case we always want the result to be a whole number (Integer) we can do the following:
[attachment=29]
because the result of 4 / 2 will be 2 and the result of 3 / 2 will be 1.5.
In case we always want the result to be a whole number (Integer) we can do the following:
[attachment=29]