闰年脚本

#!/bin/bashecho"pleaseinputayear;"readyearlet"n1=$year%4"let"n2=$year%100"let"n3=$year%400"if[!"n1"-eq0]thenleap=0elif[!"n2"-eq0]thenleap=1elif[!"n3"-eq0]thenleap=0elseleap=1fiif["leap"-eq1]thenecho"$yearisaleapyear!"elseecho"$yearisnotayear!"fi