啊哈磊_编程从这里起步

标题: 我糊涂了 [打印本页]

作者: 太年轻有罪    时间: 2013-12-26 21:22
标题: 我糊涂了
#include <stdio.h>
#include <stdlib.h>
int main()
{int a,b,c,d;
     a=10;
  b=5;
     d=a-b;
     c=a+b;
     
   
      
     printf("%d-%d=%d\n",a,b,c);
      printf("%d+%d=%d",a,b,d);
   
      
  system("pause");   
    return 0;

我靠.jpg (10.2 KB, 下载次数: 6)

我靠.jpg

作者: 超神级    时间: 2013-12-26 21:55
printf("%d-%d=%d\n",a,b,c);c=a+b
//
printf("%d+%d=%d",a,b,d);  d=a-b;
   
作者: rosynirvana    时间: 2013-12-26 22:33
稍微想一下就能知道c, d写反位置了吧……
作者: cad20020601    时间: 2014-1-8 21:02
这是在灌水么?
作者: cad20020601    时间: 2014-1-8 21:02
好吧你赢了。。
作者: 谁谓尔能舞    时间: 2014-1-13 16:47
改成这个:
#include <stdio.h>
#include <stdlib.h>
int main()
{int a,b,c,d;
     a=10;
  b=5;
     d=a-b;
     c=a+b;
     
   
      
     printf("%d-%d=%d\n",a,b,d);
      printf("%d+%d=%d",a,b,c);
   
      
  system("pause");   
    return 0;
}

作者: jak    时间: 2014-1-14 16:52

#include <stdio.h>
#include <stdlib.h>
int main()
{int a,b,c,d;
     a=10;
  b=5;
     d=a-b;
     c=a+b;
     
   
      
     printf("%d-%d=%d\n",a,b,d);
      printf("%d+%d=%d",a,b,c);
   
      
  system("pause");   
    return 0;

作者: baibian11    时间: 2014-2-14 14:28
#include <stdio.h>
#include <stdlib.h>
int main()
{
        int a,b,c,d;
    a=10;
    b=5;
    d=a-b;
    c=a+b;
    printf("%d-%d=%d\n",a,b,d);         你这里填写的最后是C
    printf("%d+%d=%d\n",a,b,c);         这里最后是d  算出来的当然不一样   
   
        system("pause");
        return 0;
}





欢迎光临 啊哈磊_编程从这里起步 (https://bbs.codeaha.com/) Powered by Discuz! X3.2