Hello My Borthers
how R u ?
can U help me to solve the problem in this code and the request of the code, check if array is ordered or not
#include<iostream.h>main(){int a[5];int i,x=0,;for(i=0;i<5;i++)cin>>a;for(i=0;i<5;i++){ if(a<a[i+1]&&a>a[i+1]) x=x+0; else x=x+1; } if(x!=0) cout<<"NOT ORDER"<<endl; else cout<<"ORDER"<<endl; }