LikeWater - 1087: A+B for Input-Output Practice (III) ```cpp#include#includeusingnamespacestd;//编写一个程序,输入a、b、c三个值,输出其中最大值。intmain(){doublea,b;while(cin>>a>>b&&!(a==0&&b==0)){cout 题解列表 2023年02月27日 0 点赞 1 评论 461 浏览 评分:9.9
1087两数加和求解 摘要:解题思路:用for语句循环,break跳出循环注意事项:注意for循环的循环截止条件参考代码:#include<iostream>using namespace std;int main(){ …… 题解列表 2023年10月24日 0 点赞 0 评论 568 浏览 评分:9.9
1087我的主宰好困C语言 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int a,b;while (~scanf("%d %d",&a,&b)) { if (a!=0||b!=0…… 题解列表 2021年11月06日 0 点赞 1 评论 748 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) 摘要:```cpp #include using namespace std; int main() { int a,b; while(cin>>a>>b&&(a!=0||b!=…… 题解列表 2022年08月31日 0 点赞 0 评论 862 浏览 评分:9.9
输入截止易错点判断 摘要:原题链接:[题目 1087: A+B for Input-Output Practice (III)](https://www.dotcpp.com/oj/problem1087.html "题目 1…… 题解列表 2024年01月21日 0 点赞 0 评论 572 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) C语言代码 #includeintmain(){inta,b;while(1){scanf("%d%d",&a,&b);if(a==0&&b==0){break;}else{printf("%d\n",a+b);}}return0;} 题解列表 2022年11月19日 0 点赞 0 评论 738 浏览 评分:9.9
A+B for Input-Output Practice (III)-题解(Python代码) 核心语句:a,b=map(int,input().strip().split())这句话的作用是将输入的两个整数,中间以空格隔开,分别赋值给a,b```whileTrue:#try:a,b=map(int,input().strip().split())ifa==0andb==0:breakprint 题解列表 2019年09月04日 0 点赞 0 评论 1483 浏览 评分:9.9
运用C语言解1087: A+B for Input-Output Practice (III) 摘要:解题方法很多运用C语言的同学可以参考这边感谢评论区提供其他方法以下是参考代码:#include <stdio.h>int main (){ int a,b;while (~scanf("%d %d",…… 题解列表 2024年06月21日 0 点赞 0 评论 645 浏览 评分:9.9
A+B for Input-Output Practice (III) C语言代码 摘要:#include<stdio.h>int main(void){ int i, a, b, j; scanf("%d %d", &a, &b); while (!(…… 题解列表 2024年07月31日 0 点赞 0 评论 580 浏览 评分:9.9
1087: A+B for Input-Output Practice (III) 摘要:解题思路:输一个输出一个,直到“0 0”。注意事项:要写出终止循环的方法哦!参考代码:#include<iostream> using namespace std; int main() { …… 题解列表 2022年05月21日 0 点赞 0 评论 587 浏览 评分:9.9