Lab 1: Leap year or not
echo "Enter the year"
read year
if [ `expr $year % 4` -eq 0 ]
then
echo "Leap Year"
else
echo "Not Leap Year"
fi
read year
if [ `expr $year % 4` -eq 0 ]
then
echo "Leap Year"
else
echo "Not Leap Year"
fi
Leave a Comment