The expression 9%2 evaluates to:
b. 5
b. 3
c. 1
d. 4
Answers
Answer:
1
Explanation:
"%" returns the remainder after division.
9/2 quotient = 4 remainder = 1
Answer:
The expression 9%2 evaluates to 1.
Option c is the correct answer.
Explanation:
Arithmetic operators are used to perform mathematical operations. The list of arithmetic operators are
- + (addition operator)
- - ( subtraction operator)
- * (multiplication operator)
- / (division operator)
- % (modulus operator)
Arithmetic expressions are formed using arithmetic operators, numerical constants, and function call connected by the arithmetic operator.
Modulus operator:
- It is a binary operator which require two operands.
- Modulus operator gives the remainder of an integer division.
Step-by-step explanation:
STEP 1 : Here, % is the modulus operator. 9 and 2 are operands.
STEP 2 : Now, we divide the dividend 9 by the divisor 2.
STEP 3 : We get 4 as the quotient and 1 as the remainder.
STEP 4 : Modulus operator gives the remainder, so we get 1 as the answer.
Thus, the expression 9%2 evaluates to 1.
Click here to know more about "operators":
https://brainly.in/question/3908453
Click here to know more about "Arithmetic operators":
https://brainly.in/question/21890353