Write a program to Find out given year which is leap or not.
Write a program to Find out given year which is leap or not.
#include void main() { int yr; printf("\nEnter year="); scanf("%d",&yr); if(yr%4==0) { if(yr%100==0) { if(yr%400==0) { printf("\n\n\t\t ** %d is Leap year **\n",yr); } else { printf("\n\n\t\t not Leap year. Century year..\n"); } } else{ printf("\n\n\t\t Leap year...\n"); } } else{ printf("\n\n\t\t Not a Leap year...\n"); } }
View On WordPress














