How can you calculate modulus of two numbers using C++ program?
Answers
Answered by
1
C++ Modulus Operator. ... The C and C++ language provides a built-in mechanism, the modulus operator ('%'), that computes the remainder that results from performing integer division. Consider the following program which takes a number from user and calculates the remainder of the number with divided by 3.
Similar questions