Created
March 5, 2020 01:26
-
-
Save afaqk9394/1fdfa3377080be0977e024486177bf1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Enter the year in YYYY format, followed by [ENTER]:" | |
read year | |
if (( ("$year" % 400) == "0" )) || (( ("$year" % 4 == "0") && ("$year" % 100 != | |
"0") )); then | |
echo "Yes, it is" | |
else | |
echo "Nope, it is not." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment