Difference between slash and mod
Answers
Answered by
1
Answer:
Forward slash(/) gives the answer in float, while modulo(%) divides and gives the remainder. To determine the quotient and remainder of a division, use the floor division and modulo operators, respectively. Floor division is done using two forward slashes. The modulo operator is carried out with a percent symbol
Similar questions