Increasing decreasing sequence

i have paste a code below which identify increasing order…
but i cant find result can you modify it or list my mistakes below…

int n,j,last,x,count=0;
cin>>n;
x = n%10;
for (int i = 0;n!=0; ++i)
{
n = n/10;
last = n%10;

 	       for ( j = 0;x!=0; ++j)
 	       {
 	       	     if( last<x){
 	       	     	 count++;

 	       	     	 x = last;
 	       	     	 break;
 	       	     }
 	       	     else
 	       	     	cout<<"not in increasing order";
 	      }
          if(j==count){
 		                
 		              cout<<"yes in increasing order";   
 		             }
 	
 	}  

please hep!!!

hi
diwyashu
save youe code to online ide of coding blocks ad then post the link here