Advertisement
Guest User

Untitled

a guest
Mar 3rd, 2016
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. int temp,count;
  2.             temp=count=1;
  3.             for (int i=0;i<n;i++){
  4.                 for (int j=0;j<n;j++){
  5.  
  6.  
  7.                     if((j<n-1 && arr[i][j]<arr[i][j+1]) || (i<n-1 && j==n-1 && arr[i][j]<arr[i+1][0]  )  ){
  8.  
  9.                          temp++;
  10.                      }
  11.  
  12.  
  13.                     else{ if (temp>count){
  14.                         count=temp;temp=1;
  15.                     }}
  16.  
  17.                 }
  18.  
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement