搜索
查看: 273|回复: 5

急用急用,帮帮忙

[复制链接]
 楼主| 发表于 2018-10-12 14:37:19 | 显示全部楼层 |阅读模式
5啊哈币
#include <stdio.h>
#include <stdlib.h>
int main()
{int a,b
printf("a==2");
  scanf("%d",&a);
     b=1\a;
     printr("%d",b);
       
        system("pause");
        return 0;
}


 楼主| 发表于 2018-10-12 14:38:51 | 显示全部楼层
哪里错了??????????好像是滴5和7行错了,怎么改啊
发表于 2018-10-12 18:28:55 | 显示全部楼层
1.第四行末尾分号 2.第7行 b=1/a;
发表于 2018-10-13 20:26:49 来自手机 | 显示全部楼层
还有一行的printf也不对
发表于 2018-10-19 22:09:18 | 显示全部楼层
#include <stdio.h>
#include <stdlib.h>
int main()
{int a,b;
printf("a==2");
  scanf("%d",&a);
     b=1/a;
     printf("%d",b);
        
        system("pause");
        return 0;
}
发表于 2019-2-13 17:05:40 | 显示全部楼层
#include <stdio.h>
#include <stdlib.h>
int main()
{
   int a,b;
   printf("a==2");
   scanf("%d",&a);
   b=1/a;
   printf("%d",b);        
   system("pause");
   return 0;
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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