C Program To Determine Leap Year or Not using Logical Operators
Satish B
http://technotip.com/7195/c-program-to-determine-leap-year-or-not-using-logical-operators/
Any year is entered through the keyboard, write a C program to determine whether the year is a leap year or not. Use the logical operators && and ||.
Leap Year Logic
- If a year is a century year(year ending with 00) and if it’s perfectly divisible by 400, then it’s a leap year.
- If the given year is not a century year and it’s perfectly divisible by 4, then it’s a leap year.
C Programming Interview / Viva Q&A List http://technotip.com/6378/c-programming-interview-viva-qa-list/
C Programming: Beginner To Advance To Expert http://technotip.com/6086/c-programming-beginner-to-advance-to-expert/ ... https://www.youtube.com/watch?v=8IQcK85dNrw
2020-07-21
0.0 LBC
Copyrighted (contact publisher)
5600379 Bytes