Computer Science, asked by pritampaliitian, 1 year ago

double a=2.7,double b=1.2,double c=a%b,the value stored by c in Java is _______ ​

Answers

Answered by Anonymous
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❤
ChrisSmith: Awwww... xD Sassy
Anonymous: ;)
Similar questions