Question: C++ Only! 2. Define a function that can be used to find if a particular year is leap year or not. In order t check

 C++ Only! 2. Define a function that can be used to

C++ Only! 2. Define a function that can be used to find if a particular year is leap year or not. In order t check if a year is leap year or not, follow the steps given below: Check if year is divisible by 4, if so, Then check if year is not divisible by 100 or year is divisible by 400 then return true else return false Else Return false . Call this function from main by sending an input for year

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!