Why we cant see the original value in division? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
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 Antwort
+ 2
you can define the divisible values as 'double' instead of 'int'. and then see quotient
23rd Aug 2018, 4:53 PM
Mahendra Kumar