Programming Code Center(PCC)
[CPP]

(PCC)::[how-to-write-Cpp-Program-to-Find-Quotient-and-Remainder]::[cpp]

File Name : quotient_and_remainder.cpp

#include <iostream>
using namespace std;

int main()
{    
    int divisor, dividend, quotient, remainder;

    cout << "Enter dividend: ";
    cin >> dividend;

    cout << "Enter divisor: ";
    cin >> divisor;

    quotient = dividend / divisor;
    remainder = dividend % divisor;

    cout << "Quotient = " << quotient << endl;
    cout << "Remainder = " << remainder;

    return 0;
}

Output :

quotient_and_remainder.jpg