acm訓練題

月巴叉發表於2018-12-07

A + B Problem
Calculate
A + B.

    Input
    Each line will contain two integers 

A and
B. Process to end of file.

    Output
    For each case, output 

A + B in one line.

    Sample Input
    1 1

    Sample Output
    2

問題連結:https://vjudge.net/problem/hdu-1000?tdsourcetag=s_pctim_aiomsg
問題分析:合理利用while語句
ac通過的C++語言如下:
在這裡插入圖片描述

相關文章