#include<stdio.h> #include<conio.h> main() { int a; clrscr(); printf("\nenter the year"); scanf("\n%d",&a); if(a%4== 0) { printf("LEAP YEAR"); } else { printf("IT IS NOT A LEAP YEAR"); } getch(); return 0; } //OUTPUT enter the year 2010 IT IS NOT A LEAP YEAR
No comments:
Post a Comment