Write the function main: The user enters the numbers n and x from the keyboard, then the function f is called. Write an
Posted: Tue May 24, 2022 8:42 am
Write the function main: The user enters the numbers n and x
from the keyboard, then the function f is called. Write an
auxiliary function f that reads n real numbers from the keyboard
and returns to main the number of numbers greater than x, less than
x, and equal to x. Main displays the result on the screen. If the
input is wrong, the user should get an error message
from the keyboard, then the function f is called. Write an
auxiliary function f that reads n real numbers from the keyboard
and returns to main the number of numbers greater than x, less than
x, and equal to x. Main displays the result on the screen. If the
input is wrong, the user should get an error message