31. Which is used to extract the middle digit from 123?
(A) 123/100
(B) 123%10
(C) 123/10%10
(D) 123%100%10.
Answers
Answered by
0
Answer:
C
Explanation:
123 when divided by 10 gives 12.3
If we use int, we get 12 than taking modulo with 10 it gives remainder 2 (middle digit)
Answered by
0
Answer:
option c is the correct answer of this question
Similar questions