To find out the current year is leap year or not which
date() function we've to use.Give the syntax also
Answer Posted / krishna reddy ketha
NOTE:
IT IS ONLY FOR FIND OUT THE GIVEN YEAR IS
LEAP YEAR OR NOT.
CONDITION:
/*
leap year:
// is divisible by 4 and not by 100
// is divisible by 400
*/
if((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
printf("%d is a LEAP YEAR" + year);
else
printf("%d is NOT a LEAP YEAR" + year);
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Is it possible to destroy a cookie?
Is empty java?
Is php 5 still supported?
How to connect to mysql from a php script?
What is a substring in php?
Xplain is it possible to use com component in php?
What is php programming used for?
For image work which library is used in php?
What is reference variable php?
Where is the submitted form data stored?
How you can update memcached when you make changes to php?
What is a composer in PHP?
What are the differences between session and cookie?
Describe the security vulnerability of PHP?
Tell me what is the definition of a session?