Test online Didactic.ro
Funcția f este definită mai jos.
int f(int n) { if ( n != 0 ) return ( n % 2 ) * ( n / 10 % 10) + f( n / 10 ); return 0; }