一起来找茬 下面这段代码用来判断一个数是否是7的倍数。其中有4个错误,快来改正吧!
修改后:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
scanf("%d",&a);
if (a%7==0)
{
printf("yes");
}
system("pause");
return 0;
}
运行效果:
一起来找茬 下面这段代码用来判断一个数是否是7的倍数。其中有4个错误,快来改正吧!
修改后:
#include <stdio.h>
#include <stdlib.h>
int main()
{
int a;
scanf("%d",&a);
if (a%7==0)
{
printf("yes");
}
system("pause");
return 0;
}
运行效果: