## Find Quotient and Remainder in C++(C Plus Plus)

In this latest tutorial, we will cover the following topics;

- Find Quotient and Remainder in C++(C Plus Plus)

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
// Find Quotient and Remainder #include <iostream> using namespace std; int main() { int dividen,divisor,x,y; cout<<"Enter The Dividend ="; cin>>dividen; cout<<"Enter The Divisor ="; cin>>divisor; x=dividen/divisor; y=dividen%divisor; cout<<"Quotient is "<<x<<endl; cout<<"Remainder is "<<y<<endl; } |

**Output**:

Latest posts by Prof. Fazal Rehman Shamil (see all)