Answer to Question #14124 in C++ for kajol
Write a program to read two numbers and print their quotient and remainder.
1
2012-09-04T11:17:40-0400
#include <iostream>
using namespace std;
int main()
{
int a, b;
cout << "Please input a:" << endl;
cin
>> a;
cout << "Please input b:" << endl;
cin
>> b;
cout << "quotient c = " << (int) (a / b)
<< endl;
cout << "remainder d = " << a % b <<
endl;
return 0;
}
Need a fast expert's response?
Submit order
and get a quick answer at the best price
for any assignment or question with DETAILED EXPLANATIONS!
Learn more about our help with Assignments:
C++
Comments
Leave a comment