Why did I get different answer when i used (9/5) rather than (9.0/5.0)
(9/5)
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Ashish RajAnand
6 May 2020, 08:02
you get 1
when any on the variable float then you get answer in float .
int /int =int
float/int =float
int /float=float
float /float=float
learn difference b/w float and int variable
0