#include<stdio.h>
main()
{
int x;
scanf("%d",&x);
if(x%2==0)
printf("是偶数");
else
printf("是偶数");
return 0;
}
知识点:if-else语句的应用
心得体会:使用if-else语句时要特别注意条件
#include<stdio.h>
main()
{
int x;
scanf("%d",&x);
if(x%2==0)
printf("是偶数");
else
printf("是偶数");
return 0;
}
知识点:if-else语句的应用
心得体会:使用if-else语句时要特别注意条件