1 Write a Shell program to find all numbers between 50 and 100, which are divisible by 3 and not divisible by 5.
Output:
51 54 57 63 66 69 72 78 81 84 87 93 96 99
2 Write shell script to display the message as follow:
Sample Output:
- is 70 or above "Distinction"
- is 60 <= 70 "First Class"
- is 50 <= 60 "Second Class"
- is 40 <= 50 "Third Class"
- otherwise "Fail"
3 Write a Shell program to find the sum of odd and even numbers from a set of numbers.
Sample Input/Output:
Enter the number of elements: 5
Enter the number: 11
Enter the number: 22
Enter the number: 33
Enter the number: 44
Enter the number: 55
The sum of odd numbers is : 99
The sum of even numbers is : 66
4 Write a shell scripting code that will take any numbers from user until 0 is given as input and print the summation as output.
Sample Input/Output:
Input: 1 2 3 4 5 0 Input: 2 4 6 0
Output: 15 Output: 12