Author Archives

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...

Write a C program to check Leap year or Not

Program: #include <stdio.h> int main(){ int year; printf(“Enter a year :”); scanf(“%d”,&year); if(((year%400==0 )||(year%100!=0))&&(year%4==0)) printf(“%d is a leap year.\n”,year);...