Write a statement to find the remainder rem when num is divided by 5. (The variables have already been declared and num has already been initialized.)

Write a statement to find the remainder rem when num is divided by 5. (The variables have already been declared and num has already been initialized.)

LANGUAGE: C++

CHALLENGE:

Write a statement to find the remainder rem when num is divided by 5. (The variables have already been declared and num has already been initialized.)

SOLUTION:



rem = num % 5;

Add comment