quotient c 2b 2b

Solutions on MaxInterview for quotient c 2b 2b by the best coders in the world

showing results for - "quotient c 2b 2b"
Theo
15 Jul 2018
1#include <iostream>
2using namespace std;
3
4int main()
5{    
6    int divisor, dividend, quotient, remainder;
7
8    cout << "Enter dividend: ";
9    cin >> dividend;
10
11    cout << "Enter divisor: ";
12    cin >> divisor;
13
14    quotient = dividend / divisor;
15    remainder = dividend % divisor;
16
17    cout << "Quotient = " << quotient << endl;
18    cout << "Remainder = " << remainder;
19
20    return 0;
21}