+ 1

Mathematical error that must be fixed.

It says Int x = 16 Int y = 5 And the result turns out to be 3 This is invalid because 16/5 isn't equal to 3, 15/5 is equal to 3.

20th Oct 2020, 6:22 PM
Shadi Has a Pen
Shadi Has a Pen - avatar
2 Answers
+ 3
Shadi Has a Pen , you didn't mention the language. However C# or Java, integer data type stores whole numbers without fraction part. For example 17/3 will give 5.
20th Oct 2020, 6:27 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
0
Oh ok I understand now. By the way I am talking about C#. Thank you.
20th Oct 2020, 6:28 PM
Shadi Has a Pen
Shadi Has a Pen - avatar