Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Our platform connects you with professionals ready to provide precise answers to all your questions in various areas of expertise. Explore comprehensive solutions to your questions from knowledgeable professionals across various fields on our platform.

27. If X and Y are int type variables,
what will be the result of the
expression
X%Y when X=5 and Y=2?
a. 0
b. 1
c. 2
d. 3​


Sagot :

b)1.
In programming language % is used as modulo division . That it when used it gives the remainder as the output.
5%2 =1 (remainder).
Thank you for choosing our service. We're dedicated to providing the best answers for all your questions. Visit us again. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. We're glad you chose Westonci.ca. Revisit us for updated answers from our knowledgeable team.