搜索
查看: 491|回复: 0
打印 上一主题 下一主题

第二三章——一起来找茬

[复制链接]
跳转到指定楼层
楼主
发表于 2014-11-22 20:40:54 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
运行通过
第二章
第二节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         
   printf("hi\n");
         system("pause");
         return0;
}
第三节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         system("color2f");
   printf("hi\n");
         system("pause");
         return0;
}
第四节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta,b,c;
    a= 321;
    b= 123;
    c= a-b;
   printf("%d",c);
         system("pause");
         return0;
}
第五节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         floata,b,c;
    a= 1.2;
    b= 1.5;
    c= a*b;
   printf("%f",c);
         system("pause");
         return0;
}
第六节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta,b,c;
    a= 10;
    b= 5;
    c= a-b;
   printf("%d\n",c);
    c= a+b;
   printf("%d",c);
         system("pause");
         return0;
}
第七节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta,b,c;
   scanf("%d %d",&a,&b);
    c= a+b;
   printf("%d\n",c);
   
     system("pause");
         return0;
}
第八节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         chara;
   scanf("%c",&a);
   printf("%c",a);
     system("pause");
         return0;
}
第十节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta,b,t;
   scanf("%d %d",&a,&b);
    t= a;
    a= b;
    b= t;
   printf("%d %d",a,b);
     system("pause");
         return0;
}
第三章
第二节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta;
   scanf("%d",&a);
   if(a<=100) printf("yes");
   
     system("pause");
         return0;
}
第三节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta;
   scanf("%d",&a);
   if(a%7==0) printf("yes");
   
     system("pause");
         return0;
}
第四节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta;
   scanf("%d",&a);
   if(a%10==7) printf("yes");
   else printf("no");
   
     system("pause");
         return0;
}
第五节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta,b;
   scanf("%d %d",&a,&b);
   if(a==b)
                   printf("yes");
   else
                   printf("no");
   
     system("pause");
         return0;
}
第六节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta;
   scanf("%d",&a);
   if(a%7==0 || a%10==7)
                   printf("yes");
   else
                   printf("no");
   
     system("pause");
         return0;
}
第七节(一起来找茬)
#include <stdio.h>
#include <stdlib.h>
int main()
{
         inta;
   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");
         return0;
}

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

广播台
特别关注
快速回复 返回顶部 返回列表