为何代码运行失败,逻辑上应该没有错呀?
#include <stdio.h>#include <stdlib.h>
int main()
{
int a;
scanf("%d",&a);
if (a%2==1);
printf("%d",a+1);
printf("%d",a+2);
printf("%d",a+3);
else
printf("%d",a-1);
printf("%d",a-2);
printf("%d",a-3);
system("pause");
return 0;
}