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

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!