MCPcopy Create free account
hub / github.com/codemistic/Data-Structures-and-Algorithms / main

Function main

CPP/questions/perfectnumber.cpp:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15int main()
16{
17 int n;
18 cout<<"Enter a number to check whether it is a perfect number or not: ";
19 cin >> n;
20 if (perfectnumber(n) == n)
21 cout << n << " is a perfect number." << endl;
22 else
23 cout << n << " is not a perfect number." << endl;
24 return 0;
25}

Callers

nothing calls this directly

Calls 1

perfectnumberFunction · 0.85

Tested by

no test coverage detected