I have to write this program this program:
Write a function called CountIt that has as an argument an integer value. this function will ask the user to enter 10 integers, and will count the number of values entered by the user that are less than the argument passed. if the numbers are LESS, the function returns a 0.
i know i have to write a count controlled loop, but i dont know how to do that with a function. I just need an idea of how to get started with this program. Thanks.
Write a function called CountIt that has as an argument an integer value. this function will ask the user to enter 10 integers, and will count the number of values entered by the user that are less than the argument passed. if the numbers are LESS, the function returns a 0.
i know i have to write a count controlled loop, but i dont know how to do that with a function. I just need an idea of how to get started with this program. Thanks.
Comment