Your task is to Calculate a + b.InputInput contains multiple test cases.Each test case contains a pair of integers a and b,one pair of integers per line.A test case containing 0 0 terminates the input and this test case is not to be processed.OutputF

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/22 01:17:09
YourtaskistoCalculatea+b.InputInputcontainsmultipletestcases.Eachtestcasecontainsapairofintegersaand

Your task is to Calculate a + b.InputInput contains multiple test cases.Each test case contains a pair of integers a and b,one pair of integers per line.A test case containing 0 0 terminates the input and this test case is not to be processed.OutputF
Your task is to Calculate a + b.
Input
Input contains multiple test cases.Each test case contains a
pair of integers a and b,one pair of integers per line.A test case containing
0 0 terminates the input and this test case is not to be processed.
Output
For each pair of input integers a and b you should output the
sum of a and b in one line,and with one line of output for each line in input.
Sample Input
1 5
10 20
0 0
Sample Output
6
30
这是我的代码:
#include
#include
using namespace std;
int main()
{
\x05int a,b;
\x05cin >> a >>b;
\x05while( =0&&b!=0 )
\x05{
\x05\x05cout > b;
\x05}
\x05
\x05system( "pause");
\x05return 0;
}
这样子提交显示wrong.怎么回事.

Your task is to Calculate a + b.InputInput contains multiple test cases.Each test case contains a pair of integers a and b,one pair of integers per line.A test case containing 0 0 terminates the input and this test case is not to be processed.OutputF
while( a!=0&&b!=0 )表示 a,b都不是0;
如果让你计算1+0那么...

your task is to find out the cost by Your task is to find out the cost by bus Your task is finding out the cost by bus哪个对, 计算机英语Your task is to cutup the provided jpeg CMS design for Task A into XHTML / CSS 不要百度翻译,谷歌翻译的 翻译:it is a task well within your power your,these,to,please,things,task,sister.连词成句. 英语翻译Regarding your RunDLL32 issue-- This is the result of the IE7b2p uninstall failing to clear the old runddl32.exe background sync task.Go into Control Panel | Performance and Maintenance | Scheduled Tasks.Find the task that is calling rund Hello everyone,I have to ask a question to finsh the task.Damn it!The task is rasing a question.As you see,it has been done.Thanks for your comments! 英译中;1,Helen ,your task is to find out the cost by bus.2,I want to make a room reservation. To be honest, it is a s___to finish the task it is difficult task to undertake 怎么翻译 Your task is to change words so that the sentence__________.A.1oses heart B.makes sense C.sets sail D.takes it easy They are our school ’ s volunteers ( ) to help clearly people cross the streetsevery day .A whose task it is B it is whose task C to whom is the task D whose task was 一道简单的英文述题的C语言编程题.要求答案思路精确.The first line integer means the number of input integer a and b.Your task is to Calculate a + b.输入Your task is to Calculate a + b.The first line integer means the numbers of weld,calc. this is a task 英语翻译Directions:This part is to test your ability to do practical writing.You are required towrite a business letter according to the following information given inChinese.Remember to do the task on the Translation/Composition Sheet.  说 As a student,your task is _____(work) hard.怎么填?为什么? This is a task well within your ability.这个句子中,within是什么词性啊,