368d6fafea
Code backup
23 lines
447 B
C++
23 lines
447 B
C++
#include <iostream>
|
|
using namespace std;
|
|
|
|
int main()
|
|
{
|
|
cout << "- Quotient & Remainder -" << endl;
|
|
|
|
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 << endl;
|
|
|
|
return 0;
|
|
} |