SOURCE CODE:
echo “Enter the no.:”
read a
e= `expr $a % 2`
if test $e –eq 0
then
echo “no. is EVEN”
else
echo “no. is ODD”
fi
OUTPUT:
Enter the no.:
7
no. is ODD
Enter the no.:
7
no. is ODD
Jenny's Coding World - A Ultimate Blog for Computer Tricks, Hacks, Tips, SEO, Softwares for Computer & Mobile.
No comments :
Post a Comment