Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Selection Statements Write a C++ function to find whether a given year is a leap year or not. A year is a leap year if
Selection Statements Write a C++ function to find whether a given year is a leap year or not. A year is a leap year if it is evenly divisible by 4, but century years are not leap years unless they are divisible by 400. Prompt the user to enter the year. You may assume the user enters a valid value for year. Do not perform any input error checking. Display a message indicating leap year or not a leap year. Ex: Century years 1700, 1800, and 1900 were not leap years, but the year 2000 was. void leap year (int year)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started