Make a flow chart on -(b) input a year. Display the message "Leap Year” if the entered year has 366 days; otherwise display the
message "Not a Leap Year”.
Answers
Answered by
21
Leap year is the year having 366 days.
Attachments:
Answered by
7
Leap year algorithm :-
- Check If the year is completely divisible by 4, then go to step 2.
- Check If the year is completely divisible by 100, then go to step 3.
- Check If the year is completely divisible by 400, then go to step 4.
- After computation, the year is a leap year if it has 366 days.
- The year is not a leap year if it has 365 days.
Flowchart is given below :-
Attachments:
Similar questions