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

Function main2

Lab_05/Source1.cpp:9–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9int main2()
10{
11 int a, b;
12 cout << "Enter two numbers: ";
13 cin >> a >> b;
14 swap(a, b); // C++ function to swap two numbers
15 cout << a << " & " << b << endl; // swap is the function which is contained in c++ ==>
16 //==> there is no need to open new function to swap
17 return 0;
18} // ending the function main

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected