You are on page 1of 1

Suggestions for Unix Lab

1. Write a shell program to find the factorial of a given number.


2. Write a shell program to find all factors of a given number.
3. Write a shell program to find the fibonacci series.
4. Write a shell program to copy a file to a new file.
5. Write a shell program to find the greatest among three numbers.
6. Write a shell program to convert temperature from Fahrenheit to Centigrade.
7. Write a shell program to check for even or odd number.
8. Write a shell program to check whether a given number is prime or not.
9. Write a shell program to reverse a given number.
10. Write a shell program for Menu driven Shell Calculator.
11. Write a shell program to display the following pattern :
*
**
***
****
*****

12. Write a shell program to display the following pattern :


*****
****
***
**
*

13. Write a shell program to print the following pattern :


*
**
***
****
*****

14. Write a shell program to find the sum of digits of a given number.
15. Write a shell program to find all prime numbers within a given range.

You might also like