Flowchart to Check If a Year Is a Leap Year or Not

A leap year is a calendar year with 366 days as it contains an extra day in February. Generally, it is considered a leap year when a year is divisible by 4. But if the same year is also divisible by 100 but not 400, it is not viewed as a leap year. For example, 1600, 1936, 2000, 2004, and 2008 are considered leap years, whereas 1700, 1800, 1935, 1953, 1999 are not considered leap years. Flowchart to check if a year is a leap year or not has been shown below.



Page content(s):

1. Flowchart


Additional content(s):

1. Algorithm

2. Pseudocode

3. Time complexity




1. Flowchart to Check If a Year Is a Leap Year or Not

Flowchart to check if a year is a leap year or not



4 comments:

  1. Cant we write all 3desicions in one box

    ReplyDelete
    Replies
    1. We can do that, but the flowchart would be congested. It would be fair if we display each control line of the flowchart of the program.

      Delete

If you have any doubts or suggestions, please leave a note.