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.
Flowchart to Check If a Year Is a Leap Year or Not
Subscribe to:
Post Comments (Atom)
Nil
ReplyDeleteHello what do you mean by "nil"?
ReplyDeleteCant we write all 3desicions in one box
ReplyDeleteWe 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