Input :
*Processing*
Output :
An array full of numbers which is terminated by 0.
Algorithm:
1. **Start
2. **Take an array, max, and min as variables.
3. **Get the numbers from the user.
4. **Initialize the max and min variables as a[0].
5. **Now, check if max>a[i]. If true, reinitialize max=a[i].
6. **Check if min<a[i]. If true, reinitialize min=a[i].
7. **Print max and min.
8. **Stop