Question: Write a bash script to take a year as input from user and check whether the input year is a LEAP YEAR OR NOT .

Write a bash script to take a year as input from user and check whether the input year is a LEAP YEAR OR NOT.

HINT: Any year which is exactly divisible by 4 is a leap year.

Step by Step Solution

3.34 Rating (151 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Input binbash echo Enter the year YYYY read yea... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Operating System Questions!