Untitled

mail@pastecode.io avatarunknown
plain_text
a month ago
367 B
2
Indexable
Never
#include <stdio.h>
int main()
{
    int n,first,m,count=1,pow;
    scanf("%d",&n);
    first=n;
    while (first>=10)
    {
        first=first/10;
    }
    if (n%10==0 && first==1)
    {
        
        pow=n/10;
        
        printf("Yes,%d\n",pow);
        
    }
    else
    {
        printf("No\n");
    }
    


    return 0;
}