➽ Program:-
#include<stdio.h>
int main()
{
int num, result;
printf("Enter a
Number: ");
scanf("%d", &num);
result = num % 2;
if(result == 0)
printf("%d is an even number", num);
else
printf("%d is an odd number", num);
return 0;
}
➽ Output:-
Enter a Number: 50
50 is an even number
Enter a Number: 99
99 is an odd number
0 Comments
Please do not enter any spam link in the comment section.