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

Function main

Lab_01/04_integer_operations_v2.cpp:7–19  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5using namespace std;
6
7int main()
8{
9 int num1, num2;
10 cout << "Enter two integers: ";
11 cin >> num1 >> num2;
12 cout << "Sum: " << num1 + num2 << endl;
13 cout << "Difference: " << num1 - num2 << endl;
14 cout << "Product: " << num1 * num2 << endl;
15 cout << "Quotient: " << num1 / num2 << endl;
16 cout << "Remainder: " << num1 % num2 << endl;
17 system("pause");
18 return 0;
19}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected