Tuesday, December 15, 2020

10. WAP to perform following actions on an array entered by the user: i.Print the even-valued elements ii.Print the odd-valued elements iii.Calculate and print the sum and average of the elements of array iv.Print the maximum and minimum element of array v.Remove the duplicates from the array vi.Print the array in reverse order The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program.

 10. WAP to perform following actions on an array entered by the user:

 i.Print the even-valued elements 

ii.Print the odd-valued elements 

iii.Calculate and print the sum and average of the elements of array 

iv.Print the maximum and minimum element of array 

v.Remove the duplicates from the array 

vi.Print the array in reverse order 

The program should present a menu to the user and ask for one of the options. The menu should also include options to re-enter array and to quit the program.




No comments:

Post a Comment