-------------------------------------------------
#include <stdio.h>
int main()
{
int num;
printf("Enter any number: ");
scanf("%d", &num);
if(num % 2 == 0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
return 0;
}
-----------------------------------------------
check whether a character is alphabet or not
number is even or odd
#include <stdio.h>
int main()
{
int num;
printf("Enter any number: ");
scanf("%d", &num);
if(num % 2 == 0)
{
printf("Number is Even");
}
else
{
printf("Number is Odd");
}
return 0;
}
-----------------------------------------------
check whether a character is alphabet or not
No comments:
Post a Comment