C Program to show if a number is even or odd - c programs
//C Program to show if a number is even or oddd
#include <stdio.h>
#include <conio.h>
main()
{
int n;
clrscr();
printf("enter any number");
scanf(%d",&n);
if(n%2==0)
printf("number is even");
else
printf("number is odd");
getch();
}
#include <stdio.h>
#include <conio.h>
main()
{
int n;
clrscr();
printf("enter any number");
scanf(%d",&n);
if(n%2==0)
printf("number is even");
else
printf("number is odd");
getch();
}
No comments:
Post a Comment