In C language, write a program with two functions:
Function 1: int number( int A, int B) - this function will read a number from the user and only accepted if in the range A to B. If outside, ask again until acceptable
Function 2: void printArr ( int K [ ], int many) - this function will print items from list K on one line
Main: use 2 functions above to
- create array size 50
- ask user to enter numbers until sum(total) is over 60 ( only numbers between 10 and 20 are allowed (function 1))
- store each valid number into an array
- after loop is complete, report how many values and the sum
- print out the list of numbers using functions 2