Răspuns:
#include <iostream>
using namespace std;
int main()
{
int n,nr,c;
cin>>n;
nr=0;
while(n!=0)
{
c=n%10;
if(c==0) nr++;
n=n/10;
}
cout<<nr;
return 0;
}
SI
n,c,nr naturale
citeste n
nr=0
cat timp n!=0 executa
{
c=n%10
daca c=0 atunci nr=nr+1
n=n/10
}
scrie nr