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;
}
Answer:
52, 50, 54, 54, 56
Explanation:
The "stem" in this scenario is the tens digit of the number. Each "leaf" is the ones digit of a distinct number with the given tens digit.
5 | 20446 represents the numbers 52, 50, 54, 54, 56
Answer:
The one end of a hollow square bar whose side is (10+N/100) in wit
Explanation: