Even Odd: (Example 1) Write a program to check whether the given number ...
/* 1 program of even and odd */
#include<stdio.h>
#include<conio.h>
void main()
{ int n; clrscr(); printf("Enter a number :"); scanf("%d",&n); if(n%2==0) printf("even number"); else printf("odd number"); getch();
}
No comments:
Post a Comment