Computer Science, asked by ahmedkashifansari80, 5 months ago

what is the deffrences between /and % opreator? ​

Answers

Answered by prachi16194
1

Answer:

/ operator is used to get quotient between two numbers.

For example: 9/3 = 3

% operator is used to get remainder between two numbers

For example: 10%3 = 1 (As 10/3 gives a remainder of 1)

Similar questions