C Program using Arrays
Write a menu driven program to demonstrate the use of array andswitch.
Please note that user should be able to enter 20 numbers only.(Hint – Array size is twenty)
Here is the menu –
- Press 1 to add a number to the array.
- Press 2 to display the numbers entered in the array so far
- Press 3 to find the average of the numbers entered.
- Press 4 to exit
- Option 1 – User will be able to add only one number to thearray. (Hint – Keep track of number of numbers entered) If alltwenty numbers are entered by the user and user selects
OROR