Computer Science, asked by gurleen943, 11 months ago

what is the answer to this expression,22%3 is​

Answers

Answered by tetalalakshmisreerag
6

Answer:

What is the answer to this expression, 22 % 3 is? Explanation: Modulus operator gives the remainder. So, 22%3 gives the remainder, that is, 1.

Answered by pruthaasl
0

Answer:

The answer to the given expression 22%3 is 1.

Modulo Operator:

  • Modulo operator is an arithmetic operator used in many programming languages.
  • It is denoted by % and works between two operands.
  • The modulo operator returns the remainder after dividing the given numerator by the denominator.
  • The remainder returned is always an integer number only.
  • Example: 5 mod 3 or 5%3 divides 5 by 3 and returns 2 which is the remainder of the division.
  • When 22 is divided by 3, the quotient is 7 and the remainder is 1, i.e., (22-21).

Therefore, the remainder of 22%3 is 1.

#SPJ2

Similar questions