0 votes 0 votes closed with the note: Answered. Let a, b be two positive integers, which of the following options correctly relates / and %? (a) b= (a/b) * b + a%b (b) b= (a%b) * b + a/b (c) a= (a/b) * b + a%b (d) a= (a%b) * b + a/b Mak Indus asked Dec 17, 2018 • closed Dec 18, 2018 by Mak Indus Mak Indus 315 views comment Share Follow See all 2 Comments See all 2 2 Comments reply Lakshman Bhaiya commented Dec 17, 2018 reply Follow Share In this example, $\%$ means modulus operator? what is your doubt? 0 votes 0 votes DIBAKAR MAJEE commented Apr 20, 2020 reply Follow Share (c) is the correct answer. 0 votes 0 votes Please log in or register to add a comment.
Best answer 1 votes 1 votes Let's take $a=20$ and $b=10$ $(a)$ $b= (\frac{a}{b})\times b + a\%b$ $b= (\frac{20}{10})\times 10 + 20\%10$ $b= (2)\times 10 + 0$ $b=20$ $(b)$ $b= (a\%b)\times b + \frac{a}{b}$ $b= (20\%10)\times 10 + \frac{20}{10}$ $b= (0)\times 10 + 2$ $b=2$ $(c)$ $a= (\frac{a}{b})\times b + a\%b$ $a= (\frac{20}{10})\times 10 + 20\%10$ $a=(2)\times 10+0$ $a=20$ $(d)$ $a= (a\%b)\times b + \frac{a}{b}$ $a= (20\%10)\times 10 + \frac{20}{10}$ $a=(0)\times 10 +2$ $a=2$ Lakshman Bhaiya answered Dec 17, 2018 • selected Dec 17, 2018 by Mak Indus Lakshman Bhaiya comment Share Follow See all 0 reply Please log in or register to add a comment.