18 . Write a C program to check whether a year is leap year or not. Solution :- #include<stdio.h> #include<conio.h> void main() { clrscr(); int a; printf("Enter the Year :- "); scanf("%d",&a); if(a%4==0) { printf("%d is the Leap Year"); } else { printf("%d is not a Leap Year"); } getch(); } Output :-
All computer course for class 9th to 12th with proper practical and theory .........