64 638
Assignments Done
99,2%
Successfully Done
In September 2018

Answer to Question #14124 in C++ for kajol

Question #14124
Write a program to read two numbers and print their quotient and remainder.
Expert's answer
#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!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions