0

what would be the answer if I use 8%5 under double datatype?

(i.e.,) double x = 8%5 ; returns ?

6th Sep 2016, 1:43 AM
RAKESH
9 Respuestas
+ 2
3.0 actually. % is modulus, remainder of a division.
6th Sep 2016, 3:43 AM
James
James - avatar
+ 2
3.0
6th Sep 2016, 6:08 AM
vedchanda mukherjee
+ 1
0.4 wil b d ans.
6th Sep 2016, 2:14 AM
abi
+ 1
3.0 is the answer bc double is float
6th Sep 2016, 8:06 AM
Farhan Sindy
Farhan Sindy - avatar
0
3
8th Sep 2016, 6:19 AM
santhosh kumar
santhosh kumar - avatar
0
3.0
13th Sep 2016, 9:03 AM
Akash Chopra
Akash Chopra - avatar
0
3.0 will be the answer as double has decimal values
13th Sep 2016, 9:04 AM
Akash Chopra
Akash Chopra - avatar
0
3
14th Sep 2016, 3:11 PM
Jesse Hunter
Jesse Hunter - avatar
0
3
8th Nov 2016, 5:13 PM
Akeem Shan
Akeem Shan - avatar