Computer Science, asked by madhura1322000, 3 months ago

nd Conditions
What is the output of the program?
ard
#include <iostream>
using namespace std;
w
int result(int n)
{
if (n<=10)
return n;
else
{
int a = n%10;
int b = n/10;
return a + result(a+b);
}
int main()
{
cout<<result(5126);
return 0;
}​

Answers

Answered by Anonymous
1

Answer:

sorry don,t understand

Answered by Anonymous
0

write your question in a proper way i didn't get your point????

Similar questions