What are the roles of '%' and '/' operator? Explain with suitable C++ example.
Answers
Answered by
2
ANSWER
role of %--- useful for detecting even/odd numbers (like to make stripes) and for restricting a value to a range (like to wrapping an animated ball around) .
role of /----- used to perform comparisons
Similar questions