Sage: 32 % 6 will give a.2 b. 18.75 c. 5 d.0
Answers
Answered by
1
Required Answer:-
Question:
- Find the output of the following statement.
Output:
- 2 (Option A) is the right answer.
Explanation:
The modulo(%) operator is used to calculate the remainder obtained when a number is divided by another number. Let us divide 32 by 6.
6 ) 32 ( 5
- 30
---------------
2
Thus, remainder obtained is 2. Therefore,
➡ 32 % 6 = 2
Similar questions