Răspunsuri

2014-06-01T18:38:50+03:00
#include<iostream>
using namespace std;
int main(){
int i,n,v[100],ok=0;
cout<<"n=";cin>>n;
for(i=1;i<=n;i++){
cout<<"v["<<i<<"]=";cin>>v[i];
}
for(i=1;i<n;i++){
if(v[i]<v[i+1])ok++;
}
if(ok==n-1)cout<<"vector ordonat";
else cout<<"vector neordonat";
return 0;
}
5 3 5