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

Function main5

Lab_04/Source4.cpp:7–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <iostream>
6using namespace std;
7int main5()
8{
9 float sum = 0, fact = 1;
10 for (int i = 1; i <= 7; i++)
11 {
12 fact = fact * i;
13 sum += i / fact;
14 }
15 cout << "Sum is : " << sum << endl;
16 system("pause");
17 return 0;
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected