Untitled

 avatar
unknown
plain_text
2 years ago
345 B
5
Indexable
#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);
    
}
Editor is loading...