Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- 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;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement