This shell script accepts a year and checks if the entered year is leap year or not.
echo -n "Enter the year, I will tell you whether its Leap year or Not? "
ans=$(($year % 4)) # or try ans=`expr $year % 2`
if [ $ans -eq 0 ]; then
echo "$year is Leap Year"
echo "$year is NOT Leap Year"