C Program to Find ODD & EVEN Number given by the user.
#include<stdio.h>
void main()
{
int a;
printf("Enter the Number");
scanf("%d",&a);
if (a%2==0)
printf("Number is Even");
else
printf("Number is Odd");
getch();
}
Output :-
C Program to Find ODD & EVEN Number given by the user.
#include<stdio.h>
void main()
{
int a;
printf("Enter the Number");
scanf("%d",&a);
if (a%2==0)
printf("Number is Even");
else
printf("Number is Odd");
getch();
}
Output :-
0 comments:
Post a Comment