Answer:
// Program is written in C++
// Comments are used to explain some lines
// Only the required function is written. The main method is excluded.
#include<bits/stdc++.h>
#include<iostream>
using namespace std;
int divSum(int num)
{
// The next line declares the final result of summation of divisors. The variable declared is also
//initialised to 0
int result = 0;
// find all numbers which divide 'num'
for (int i=2; i<=(num/2); i++)
{
// if 'i' is divisor of 'num'
if (num%i==0)
{
if (i==(num/i))
result += i; //add divisor to result
else
result += (i + num/i); //add divisor to result
}
}
cout<<result+1;
}
Explanation:
Because manufacturing has so many substantial links with so many other sectors throughout the economy, its output stimulates more economic activity across society than any other sector. That's a major reason manufacturers play such a critical role in growth.