Tells the user whether it is a leap year


A year is a leap year if it is divisible by 4 unless it is divisible by 100 but not by 400.

Write a program which prompts the user to enter a year, and then tells the user whether it is a leap year. If the user does not enter a valid year (i.e., a positive integer), the program should say as much and give the user another chance to enter a year. 

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Tells the user whether it is a leap year
Reference No:- TGS0143468

Expected delivery within 24 Hours