#include <iostream>
using namespace std;
int main(){
int n; ///wielkosc tablicy
int *tab;
cout<<"podaj n- wielkosc tablicy: ";
cin>>n;
tab = new int [n];
for(int i = 0; i <n; i++){
cout<<"wprowadz wartosc na "<<i+1<<" elementu tablicy: ";
cin>>tab[i];
}
bool rosnaco = true,malejaco = true;
for(int i =0; i < n-1; i++){
if(tab[i]<tab[i+1]) rosnaco = true;
else rosnaco = false;
}
cout<<"czy tablica jest rosnaca "<<rosnaco<<endl;
for(int i =0; i < n-1; i++){
if(tab[i]>tab[i+1]) malejaco = true;
else{
malejaco = false;
break;
}
}
cout<<"malejaco: "<<malejaco<<endl;
}