#include <iostream>
unsigned long getArithmeticalProgressionSum(unsigned int n) {
return (n + 1) * n / 2;
}
unsigned long getFactorial(unsigned int n) {
return n ? n * getFactorial(n - 1) : 1;
}
int main () {
unsigned int n = 10;
std::cout << "\n The sum of 1 + ... + " << n << " is " << getArithmeticalProgressionSum(n);
std::cout << "\n " << n << "! is " << getFactorial(n);
return 0;
}