#include<iostream>
using namespace std;
int main(){
int a,b;//宣告
while(cin>>a>>b){
//while
像是沒有起始陳述與終止陳述的 for
迴圈,常用於重複性的動作。
例如一個使用者輸入介面,使用者可能輸入 10 次,也可能輸入 20 次,這時迴圈停止的時機是未知的,可以使用 while
迴圈來做這個事。
cout<<(a+b)*2<<endl;//相加乘2(不會的國小要重讀了)
}
}