C Program Using Arrays Write Menu Driven Program Demonstrate Use Array Switch Please Note Q37122253

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
  1. 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
    OR
    OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.