Ask Question
22 July, 03:30

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

+1
Answers (1)
  1. 22 July, 04:45
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers