What will be the result of arithmetic expression -7.5%2 ?(a) -3
(b) -1.5
(c) 1.5
(d) Error
Answers
Answered by
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
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
Answered by
0
Answer:
the correct answer is (b) -1.5
Similar questions
Math,
9 months ago
Geography,
9 months ago
Physics,
9 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
English,
1 year ago
English,
1 year ago