Provide the code for the given program.
Program: Write a program that accepts 10 integers and determines and prints the smallest and largest integer input by the user.
Your program should use at least the following four variables:
• counter - A counter to keep track of how many numbers have been entered.
• number - The integer most recently input by the user.
• largest - The largest number found so far.
• smallest - The smallest number found so far.
Can you prepare this program in c language and evaluates and prints the smallest and largest integer input by the user.