Question: C programming in Bash A leap year must be divisible by 4. If the year is divisible by 100 it isn't a leap year, unless
C programming in Bash
A leap year must be divisible by 4. If the year is divisible by 100 it isn't a leap year, unless it is also divisble by 400.
Write a program which prompts the user for a year (as an int), prints YES if the input year is a leap year, and NO otherwise.
Consider Vim's :r (read) command, or use Bash redirect/append.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
