Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
ย
Shell script assignment 3
1. Shell Script Assignment 3
1. Write a shell script to find whether a given year(4 digits)is leap year or not.
2. Write a shell script to find the sum of the first n numbers.
3. Write a shell script to check whether a given number is prime or not.
4. Write a shell script to check whether a given number is an Armstrong number or not.
5. Write a program to make a table for a given number.
6. Write a script to find a factorial of a given number.
7. Write a shell script to find a sum of given no and to check out to see if it is even or odd.
8. Write a shell script to stimulate a calculator that does the addition, subtraction, multiplication and
division between two numbers. The user should be prompted
9. Write a shell script to display and evaluate following series up to n.
1-4+27-16+125-36+-------
10. Display series: 0,1,1,2,3,5,8.......
11. Display series:1+4+27+256...
12. Find out the sum of the following series up to a given no.
13. Write a shell script to find the sum of a given numbers.
14. Display series:1-2+6-24+....
15. Write a shell script that takes two number s through keyboard and finds the value of one number
raised to the power of another.