102k views
4 votes
The statement 5%2 will evaluate to

1 Answer

3 votes

Answer:

The statement "5%2" will evaluate to 1.

Step-by-step explanation:

The "%" symbol is the modulus operator in many programming languages. It calculates the remainder when the left operand (in this case, 5) is divided by the right operand (in this case, 2). When 5 is divided by 2, the remainder is 1, so the expression "5%2" will return 1 as the result.

User Fynn Becker
by
8.7k points