Monday, 27 May 2013

Shell Script to find leap year

echo "Enter year"
read y
if test `expr $y % 4` -eq 0
then
echo "Year is Leap"
else
echo "Year is not Leap"
fi

No comments:

Post a Comment