## Accept number and check the number is even or odd, find the length of the number, sum of the digits in the number.

echo -e “Enter the number:\c” read n if [ expr $n % 2 -eq 0 ] then echo “$n is

Read moreecho -e “Enter the number:\c” read n if [ expr $n % 2 -eq 0 ] then echo “$n is

Read moreecho -e “Enter the String::\c” read str l=echo $str|wc -c echo expr $l – 1 while [ $l -gt 0

Read morelen=cat Emp.txt | wc -l while [ $len -gt 1 ] do line=cat Emp.txt| head -$len | tail -1 Name=echo

Read moreecho -e “Enter the number::\c” read n fact=1 for((i=1;i<=n;i++)) { fact=expr $fact \* $i } echo “Factorial of the $n

Read moreecho -e “Enter the number::\c” read num t=1 for (( i=2 ; i< expr $num-1 ; i++)) { if [

Read moreecho -e “Enter the year::\c” read y if [ expr $y % 4 -eq 0 ] then echo $y is

Read morecho -e “Enter the Principle of amount::\c” read p echo -e “Enter the rate of interest::\c” read r echo -e

Read more