Why we cant see the original value in division? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

Why we cant see the original value in division?

I mean why we see the quotient as 3 and not as 2.5

23rd Aug 2018, 4:43 PM
Rahul Dhar
Rahul Dhar - avatar
1 ответ
+ 2
you can define the divisible values as 'double' instead of 'int'. and then see quotient
23rd Aug 2018, 4:53 PM
Mahendra Kumar