Advertisement
Guest User

1.

a guest
Dec 6th, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int divisor, dividend, quotient, remainder;
  6. cout << "Enter dividend: ";
  7. cin >> dividend;
  8. cout << "Enter divisor: ";
  9. cin >> divisor;
  10. quotient = dividend % divisor;
  11. remainder = dividend / divisor;
  12. cout << "Quotient = " << quotient << endl;
  13. cout << "Remainder = " << remainder;
  14. return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement