Ask Question

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

+5
Answers (1)
  1. 17 April, 04:12
    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?
Find 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 the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers