1: #include<stdio.h> 2: #include<conio.h>3: void main()
4: {5: int year;
6: clrscr(); 7: printf(“ENTER YEAR????”); 8: scanf(“%d”,&year); 9: year%100==0?(year %400==0?printf(“leap Year”) 10: :printf(“Not a Leap Year”)):(year%4==0? 11: printf(“Leap Year”):printf(“Not a leap Year”)); 12: printf(“\n\n\n\n\nPress any key to exit…”); 13: getch(); 14: }Technorati Tags: C Language,c Programs
Comments
Post a Comment