Computer Science, asked by TbiaSupreme, 1 year ago

What will be the result of arithmetic expression -7.5%2 ?(a) -3
(b) -1.5
(c) 1.5
(d) Error

Answers

Answered by aman1091
11
⭐hey there !!

let me explain it...

=> % it is modules operator used tp obtain remainder of integers...we can't use it as decimal numbers or floating point numbers.

here -7.5 % 2 gives error because we are using it with floating point number.

So option D is correct .

______________________________

♦Hope it will help u

Swathi2005: hi bro do u remember me
Swathi2005: ??
Answered by prakashsarva07
0

Answer:

the correct answer is (b) -1.5

Similar questions