echo "Enter Year:"
read a
year=$a
y=$(( $a % 4 ))
if [ $y -eq 0]
then
z=$(( $a % 100 ))
else
echo "$year is not a leap year!"
fi
if [ $z -eq 0 ]
then
echo "$year is a leap year!"
else
echo "$year is not a leap year!"
fi
this is the best place for all coders who are enthusiasm for coding
echo "Enter Year:"
read a
year=$a
y=$(( $a % 4 ))
if [ $y -eq 0]
then
z=$(( $a % 100 ))
else
echo "$year is not a leap year!"
fi
if [ $z -eq 0 ]
then
echo "$year is a leap year!"
else
echo "$year is not a leap year!"
fi