printf输入语句
#include<stdio.h>
int mainn()
{
int n;
printf("输入一个整数“);
scanf("%d",&n);
printf(“%d"是一个%s\n",n,(n%2=0?"偶数","奇数"));
return 0;
}
if语句
#include<stdio.h>
int main()
{
int n;
scanf("%d",&n);
if(n%2==0)
printf("输出为偶:/n");
else
prinef("输出为奇:/");
return 0;
}