Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int jeste=0;
- int niz[10];
- for(int i=0; i<10; i++)
- {
- cin>>niz[i];
- }
- for(int i=0; i<10; i++)
- {
- if(niz[i]<=niz[i+1])
- {
- jeste=1;
- break;
- }
- }
- if(jeste)
- {
- cout<<"Niz je rastuci!"<<endl;
- }
- else
- {
- cout<<"Niz je opadajuci"<<endl;
- }
- system("PAUSE");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment