What is the output of the following programs?
#include
using namespace std;int function(int);int main( ){ int x = 10; cout ≪ function(x) ≪ endl; return 0;}int function(int num){ if (num <= 0) return 0; else return function(num − 1) + num;}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.