👤
a fost răspuns

Ce calculează funcţia de mai jos?
int f(int i)
{if (i==0)
return 0;
else
if (a[i]%2!=0)
return f(i-1)+a[i];
else return f(i-1);}