MCPcopy Create free account
hub / github.com/Rustam-Z/cpp-programming / main

Function main

Lab_01/06_division.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7int main()
8{
9 int dividend, divisor, quotient, remainder;
10 cout << "Enter dividend: ";
11 cin >> dividend;
12 cout << "Enter divisor: ";
13 cin >> divisor;
14 quotient = dividend / divisor;
15 remainder = dividend % divisor;
16 cout << "Quotient = " << quotient << endl;
17 cout << "Remainder = " << remainder << endl;
18 system("pause");
19 return 0;
20}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected