Computer Science, asked by gaytrigupta253, 10 months ago

What is the output of expression, 25%4?
(i) 7
(ii) 1
(iii) 0
(iv)6​

Answers

Answered by pruthaasl
0

Answer:

The output of the expression 25%4 is 1.

Explanation:

  • In computer programming, the % sign is called the modulo operator.
  • It is an arithmetic operator and works on two operands.
  • It divides the numerator by the denominator to get the remainder.
  • In other terms, the modulo operator gives the remainder of a division as the output, unlike normal division which gives the quotient as the output.
  • It is denoted as % or mod.
  • Example: 10 mod 3 or 10%3 gives the result as 1 which is the remainder.

Therefore, the output of the given expression is 1.

#SPJ3

Answered by payalchatterje
2

Answer:

The output of the expression 25%4 is 1.

Explanation:

In computer programming, the % sign is called the modulo operator.

It is denoted as % or mod. Example: 10 mod 3 or 10%3 gives the result as 1 which is the remainder.

In other terms, the modulo operator gives the remainder of a division as the output, unlike normal division which gives the quotient as the output.

Here 25%4 means 25 mod 4 and here as quotient,we get 1.

Therefore, the output of the given expression is 1.

In Mathematics, the % sign is called parcentage.

Basically percentage means part of any quantity.

Here given 25\%4means 25% of 4.

We know a% of b means  =  \frac{a}{100}  \times b

So,25% of 4

 =  \frac{25}{100}  \times 4 = 1

So,in Mathematics,we also get 1 as output.

Similar questions