Question: 2. Write a python program to take a year as input and print whether it is a leap year or not. The flow chart of

 2. Write a python program to take a year as input

2. Write a python program to take a year as input and print whether it is a leap year or not. The flow chart of checking a leap year is given below Test Case 1: Sample Input: Year: 2012 Sample Output: Yes Test Case 2 Sample Input: Year: 2014 Sample Output: No Input Year Is year evenly divisible by 4? Yes Not Leap Year Is year evenly divisible by 100? Yes Leap Year Is year evenly divisible by 400? Yes

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!