Pages
Home
C.S. Blog
About Amit Ranjan
Contact Amit Ranjan
A Boy From Sitamarhi
Monday, 16 January 2012
#Program to check whether entered number is a uninumber or not
echo "Enter a number from 0 to 9"
read a
if test `expr $a \* $a % 10` -eq $a
then
echo "Entered number $a is a uninumber "
else
echo "Entered number $a is not a uninumber "
fi
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment