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