源代码:
#include <stdio.h>
int main(void)
{
int ff;
printf("you:");
scanf("%d", &ff);
if(ff % 2==0)
printf("%d",ff);
if((ff%2)%2==0)
printf("YES%d\n\n\n\n",ff);
else
if(ff>10)
printf("%d>10",ff);
else
printf("%d<10",ff);
return 0;
}
分段后的代码:
#include <stdio.h>
int main(void)
{
int ff;
printf("you:");
scanf("%d", &ff);
if(ff % 2==0){ printf("%d",ff);}
if((ff%2)%2==0)
{printf("YES%d\n\n\n\n",ff);}
else
{if(ff>10)
{printf("%d>10",ff);
{else
printf("%d<10",ff);}
return 0;
}}
}
#include <stdio.h>
int main(void)
{
int ff;
printf("you:");
scanf("%d", &ff);
if(ff % 2==0)
printf("%d",ff);
if((ff%2)%2==0)
printf("YES%d\n\n\n\n",ff);
else
if(ff>10)
printf("%d>10",ff);
else
printf("%d<10",ff);
return 0;
}
分段后的代码:
#include <stdio.h>
int main(void)
{
int ff;
printf("you:");
scanf("%d", &ff);
if(ff % 2==0){ printf("%d",ff);}
if((ff%2)%2==0)
{printf("YES%d\n\n\n\n",ff);}
else
{if(ff>10)
{printf("%d>10",ff);
{else
printf("%d<10",ff);}
return 0;
}}
}
欢迎来到我的博客:http://blog..cn/noisunyuhong