Math, asked by vishnusai732, 3 days ago

A computer teacher wants his students to find
number of days in the month of February
depending on whether it is a
leap year or not.Build an
algorithm for the same.​

Answers

Answered by sujipriyaj18
12
Non leap year-29 days
Leap year-28 days
Answered by sameenkazi135
5

Answer:

1. Start of the algorithm

2. Declare year variable

3. Read year

4. if (year % 4 == 0 && year%100 != 0 || year % 400 == 0)

       4.1. Print “Days in February are 29”

5. else  

       5.1. Print “Days in February are 28”

6. End of algorithm

Similar questions