A+B for Input-Output Practice (III)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a, b; while(cin>>a>>b) { if (a……
1087两数加和求解
摘要:解题思路:用for语句循环,break跳出循环注意事项:注意for循环的循环截止条件参考代码:#include<iostream>using namespace std;int main(){ ……
LikeWater - 1087: A+B for Input-Output Practice (III)
摘要:```cpp
#include
#include
using namespace std;
// 编写一个程序,输入a、b、c三个值,输出其中最大值。
int main()
{
……
新手解题:1087丨使用do while循环
摘要:解题思路:注意事项:参考代码:#includeusing namespace std;int main(){ int a, b; cin >> a >> b; do{ ……
A+B for Input-Output Practice (III)(怀氏c++)
摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; while(1) { ……
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!=……
1087: A+B for Input-Output Practice (III)
摘要:解题思路:输一个输出一个,直到“0 0”。注意事项:要写出终止循环的方法哦!参考代码:#include<iostream>
using namespace std;
int main()
{
……
P1087 数组解法
摘要:解题思路:我看好多题解没有严格按照输入标准来hhh 其实利用二维数组可以实现题目要求注意事项:goto语句和break语句的使用参考代码:#include<iostream>using namespa……