Question: In this lab, you will first read in an array of numbers, then a number to compare to ( I ' ll call it n

In this lab, you will first read in an array of numbers, then a number to compare to (I'll call it n here), and then for each number in the array the program will print "yes" if the number is greater than n, and "no" otherwise.
The array is specified by an integer designating the array size, and then the actual integers. For example, this data:
4
78241124
specifies the array [27,82,41,124].
So if the input is
4
278241124
42
then the output should be
no
yes
no
yes
since the array is [27,82,41,124] and n is 42.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!