double a=2.7,double b=1.2,double c=a%b,the value stored by c in Java is _______
Answers
Answered by
3
Since, % operator in JAVA is used to find remainder of the operation.
Therefore,
↶(Dry run)↷
c= 2.7%1.2
c= 3
Since, the data type of variable c is double.
Answer = 3.0
Anonymous:
Welca doggy❤
Similar questions