Write a shell program to display the alternate digits in a given 7 digit number starting from the first digit.
echo Enter a 7 digit number read num n=1 while [ $n -le 7 ] do a=`echo $num | cut -c $n` echo $a n=`expr $n + 2` done