Ask Question
2 September, 11:55

What will be the output of the expression A % B / / A if A=16 and B=15

+1
Answers (1)
  1. 2 September, 13:15
    0
    A % B / / A = 0

    Explanation:

    Given

    A = 16

    B = 15

    Required

    Find A % B / / A

    The symbol, % (pronounced, modulo) is used to return the remainder after two integers are divided.

    In this case;

    A % B = 16 % 15

    When 16 is divided by 15, the result is 1 and the remainder is 1.

    In other words, 16 divide 15 = 1 remainder 1.

    Now, we're left with (A%B) / /A

    => 1//16

    / / means floor division.

    If 1/16 = 0.0625

    The floor division of 1 and 16 is 0

    This is so because, it only returns the integer part of the division.

    So, A % B / / A = 0 when A = 16 and B is 15
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “What will be the output of the expression A % B / / A if A=16 and B=15 ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers