/*Odd And Even Number Program*/
#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int n;
printf("Enter the Value of n=");
scanf("%d",&n);
if(n%2==0)
printf("This is an Even Number");
else
printf("This is an Odd number");
getch();
}
#include"stdio.h"
#include"conio.h"
#include"math.h"
void main()
{
clrscr();
int n;
printf("Enter the Value of n=");
scanf("%d",&n);
if(n%2==0)
printf("This is an Even Number");
else
printf("This is an Odd number");
getch();
}
No comments:
Post a Comment
Thank you for visit this site. You will get many programming news from here and learn programming very easily.