Computer Science, asked by anamikasharma1732007, 1 day ago

(num % 10 == 1)
how do we have to read this ?
what is its meaning ​

Answers

Answered by burnwalbarsha6
0

Answer:

हमें इसे कैसे पढ़ना है

here is your answer

Answered by kailashmeena123rm
0

ANSWER

Here two operators used %,==

% modulo operator give remainder

and == checks for equality

since % have higher priority then == ( like in bodmas for kids)

so first it calculate the remaider left when we divide num by 10 . basically the last digit of the number. because when we divide a number by 10 remainder is its last digit.

then its checks weather it eqial to 1 or not

if equal then ans is 1 or true

if not then ans is 0 or false

Similar questions