natural x,suma
citește x
suma=0
cat timp x≠0 executa
daca x%10%2=1 atunci suma=suma+x%10
sfârșit daca
x=x/10
sfârșit cat timp
scrie suma
int main()
{
int n,suma;
cin>>n;
suma=0;
While (x!=0)
{
if(x%10%2==1) suma=suma+x%10;
x=x/10;
}
return 0;
count<<suma;
}