Answers for "C++ Quotient and Remainder"

C++
0

C++ Quotient and Remainder

int a, b, c, d;

    cout << "Input the dividend" << endl;
    cin >> a;
    cout << "Input the divisor" << endl;
    cin >> b;

    c = a / b;
    d = a % b;

    cout << "The quotient is: " << c << endl;
    cout << "The remainder is: "<< d << endl;
Posted by: Guest on March-09-2022

Code answers related to "C++ Quotient and Remainder"

Browse Popular Code Answers by Language