- Engineering
- Computer Science
- asap please include include using namespace std implement recursive...
Question: asap please include include using namespace std implement recursive...
Question details
//asap please!!!
#include
#include
using namespace std;
// Implement recursive function isAscending here
// DO NOT CHANGE MAIN FUNCTION BELOW
int main() {
int myarray[100];
cout << "Enter number of integers : ";
int n;
cin >> n;
cout << "Enter " << n << " integers"
<< endl;
for (int i = 0; i < n; i++)
cin >> myarray[i];
cout << "Output of isAscending : " <<
isAscending(myarray, 0, n-1) << endl; /////do not change
anything here.
}
Solution by an expert tutor
