Question: write a function issorted() that accepts an array of real numbers arr and an integer n as arguments, where n is the size of arr.
write a function issorted() that accepts an array of real numbers arr and an integer n as arguments, where n is the size of arr. The function properly reads n integers into the array arr,then finds and returns whether the items of the array are sorted in ascending order.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
