A+B for Input-Output Practice (III) (C语言代码) 摘要:参考代码:#include<stdio.h>int main(){ int a,b; while(~scanf("%d%d",&a,&b)){ if((a+b)==0)break; …… 题解列表 2017年10月18日 0 点赞 0 评论 1453 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:就是在哪个循环里面,加了判断语句,还是比较基础的一道题注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int main(){ int a,b; w…… 题解列表 2017年09月23日 0 点赞 0 评论 1322 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:#include<stdio.h> int main() { int a,b,c[100],i=0,n; while(scanf("%d%d", &a, &b)) {…… 题解列表 2017年07月26日 0 点赞 0 评论 1673 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { if(a==0&&b=…… 题解列表 2017年07月25日 0 点赞 0 评论 1377 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C++代码) 摘要:解题思路:while(cin>>a>>b&&a||b) 当输入的a、b不同时为零时执行循环。注意事项:参考代码:#include <iostream> using namespace std; …… 题解列表 2020年08月16日 0 点赞 0 评论 789 浏览 评分:0.0
A+B for Input-Output Practice (III) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)==2) { if(a==0&&b==0…… 题解列表 2021年03月01日 0 点赞 0 评论 717 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C语言代码) 摘要:解题思路:输入......输出......注意事项:当输入的 a 为 0 且 b 也为 0 时结束程序,否则继续循环,也就是:!(a == 0 && b == 0) //或者 !…… 题解列表 2021年02月15日 0 点赞 0 评论 586 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C++代码) 摘要:```cpp #include using namespace std; int main() { int a,b; while(1){ cin>>a>>b; …… 题解列表 2021年02月05日 0 点赞 0 评论 716 浏览 评分:0.0
A+B for Input-Output Practice (III)-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a,b,n,i; for(i=0;i<3;i++) { scanf("%d%d…… 题解列表 2021年01月30日 0 点赞 0 评论 522 浏览 评分:0.0
A+B for Input-Output Practice (III) (C语言代码) 摘要:#include <stdio.h>int main(){ int a,b ; while(scanf("%d %d",&a,&b)) { if (a==0&&b==0) brea…… 题解列表 2017年07月12日 1 点赞 0 评论 1601 浏览 评分:0.0