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

Function qwerty

Lab_05/Source3.cpp:9–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7using namespace std;
8
9double qwerty(double n, double sum, double fact)
10{
11 for (int i = 1; i <= n; i++)
12 {
13 fact = fact * i; // calculating the factorial of the numbers
14 sum += (pow(i, i) / (fact)); // executing the sum of numbers
15 } //"pow" is raising 'i' to power 'i'
16 return sum; //
17} // end function qwerty
18
19int main()
20{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected