void cifminmax(long long int n,int &maxx,int &minn){ int x; minn=9;maxx=0; while(n){ x=n%10; if(x>maxx) maxx=x; if(x