Question 1: Write a menu driven shell script which accepts a number N and an option to calculate the average of:
first ‘N’ odd numbers
first ‘N’ even numbers
Sample Input and Output:
Enter a number :
5
Menu
Even : E
Odd: O
Enter E or O:
E
The sum of even number is : 6
Comments
Leave a comment