C program to Find out Odd and Even numbers
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("Enter a Number\n");
scanf("%d",&a);
b=a%2;
if (b==0)
{
printf("Number is odd");
}
else
{
printf("Number is even");
}
getch();
}
This is a blog which is meant to share my knowledge with any one who wants it. Here I will post programs which I made using C,C++, Java Programming languages. New ideas, new concepts and new programs are expected here. You can make suggestions, you can upload programs, ask your questions, thus let us improve our technical skill and get rid off our technical doubts. First of all I warmly welcome all of you to this blog
No comments:
Post a Comment