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

Function main

Lab_05/Source3.cpp:19–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17} // end function qwerty
18
19int main()
20{
21 double n;
22 double sum = 0;
23 double fact = 1;
24 cout << "Please ebter the number: "; // outputing and inputing the number
25 cin >> n;
26 if (n > 0) // the program will calculate the sum when numbers is positive
27 cout << "Sum is: " << qwerty(n, sum, fact) << endl; // calling the function qwerty
28 else // when the number is negative 'else' will work
29 cout << "INVALID INPUT!" << endl;
30 system("pause");
31 return 0;
32} // ending the program successfully

Callers

nothing calls this directly

Calls 1

qwertyFunction · 0.85

Tested by

no test coverage detected