#include <stdio.h>
int main(void)
{
int num;
printf("Put the integer.");
scanf("%d", &num);
if (num==0)
printf("Put another number but not 0.\n");
else if(num%2==0)
{
printf("The integer is even.\n");
}
else if(num%2==1)
{
printf("The integer is odd.\n");
}
return 0;
}
int main(void)
{
int num;
printf("Put the integer.");
scanf("%d", &num);
if (num==0)
printf("Put another number but not 0.\n");
else if(num%2==0)
{
printf("The integer is even.\n");
}
else if(num%2==1)
{
printf("The integer is odd.\n");
}
return 0;
}
댓글
댓글 쓰기