Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
345 B
2
Indexable
Never
#include <stdio.h>
int main()
{
    int n,count=0;
    scanf("%d",&n);
    while (n>0)
    {
        if (n%10==0)
        {
            n/=10;
            count=count+1;       
        }
        else
        {
            printf("No\n");
            return 0;
        }
        
    }   
    printf("Yes,%d\n",count);
    
}