Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int n, numere[501], contor, ordonat;
- int main(){
- cin>>n;
- for (contor = 1;contor<=n;contor++){
- cin>>numere[contor];
- }
- for (contor = 1;contor<n;contor++) if (numere[contor] > numere[contor + 1]){ ordonat = 1; break;}
- if (ordonat == 1) cout<<"NU";
- else cout<<"DA";
- return 0;
- }
- Citește mai multe pe Brainly.ro - https://brainly.ro/tema/3642063#readmore
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement