echo “Enter number”
read n
expr ‘$r=$n%2’
if [$r -eq 0] then
echo “even”
else
echo “odd”
fi
echo “Enter number”
read n
expr ‘$r=$n%2’
if [$r -eq 0] then
echo “even”
else
echo “odd”
fi
No comments:
Post a Comment