write a c program on leap year???
Answers
Answered by
1
Explanation:
Program to check Leap Year You can check whether a year is leap or not by using this mathematical logic: Leap Year: If a year is divisible by 4, 100 and 400 then it is a leap year. Lets write this logic in a C Program.
Answered by
35
Answer:
Program to find leap year using C program
1. Take a year as input.
2. Check whether a given year is divisible by 400.
3. Check whether a given year is divisible by 100.
4. Check whether a given year is divisible by 4.
5. If the condition at step 2 and 4 becomes true, then the year is a leap year.
6. If the condition at step 3 becomes true, then the year is not a leap year.
Attachments:
Similar questions