C++

Find Quotient and Remainder in C++1 min read

Write a C++ program to find the quotient and remainder of a given dividend and divisor.

The division operator / is computes the quotient (either between float or integer variables).

The modulus operator % computes the remainder when one integer is divided by another (modulus operator cannot be used for floating-type variables).




C++ Code:

Output:

C++ Examples

C++ Examples

Leave a Comment