Write a program in C++ that will return 1 if the elements of an n-element integer array P are in ascending order. Ortherwise it must return a zero. Solution #include<iostream.h> #include<conio.h> int main() { clrscr(); int n, i, P[],flag; cout<<\"Enter the number of elements in array\"; cin>>n; cout<<\"Enter \"<<n<<\" elements\"; for(i=0;i<n;i++) { cin>>P[i]; } //check the accesnding order of array for (int i = 0; i < size - 1; i++) { if (P[i] > P[i+1]) { return false; flag = 0; } flag = 1; } if(flag==1) {return 1;} getch(); return 0; } .