Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, a=0, b, i=1, ok=1;
- cout<<"n=";
- cin>>n;
- while(i<=n && ok==1)
- {
- cin>>b;
- if(b<a)
- ok=0;
- i++;
- a=b;
- }
- if(ok==1)
- cout<<"Numerele SUNT in ordine crescatoare";
- else
- cout<<"Numerele NU SUNT in ordine crescatoare";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment