Write a program in C++ to compute quotient and remainder
- برمجة سي بلس بلس
- برمجة
- 2021-05-11
- MarwaMohammed
الأجوبة
#include <iostream>
using namespace std;
int main()
{
int dividend, divisor, quotient,remainder;
cout << "\n\n Compute quotient and remainder :\n";
cout << "-------------------------------------\n";
cout<<" Input the dividend : ";
cin>>dividend;
cout<<" Input the divisor : ";
cin>>divisor;
quotient=dividend / divisor;
remainder=dividend % divisor;
cout<<" The quotient of the division is : "<< quotient << endl;
cout<<" The remainder of the division is : "<< remainder << endl;
cout << endl;
return 0;
}
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال