- Get link
- X
- Other Apps
/*This program is to find if the inputed num is odd or even*/
#include <stdio.h>
#include <conio.h>
int main()
{
int num;
printf("Enter a number:\n");
scanf("%d", &num);
if (num%2 == 0) {
printf("%d is a even number", num);
} else {
printf("%d is a odd number", num);
}
getch();
return 0;
}
- Get link
- X
- Other Apps
Comments
Post a Comment