#include <iostream>
using namespace std;
int main()
{
int n,a,b,c,d;
cin >> n;
while (cin >> a >> b >> c >> d){
if ((b-a) == (d-c)){
int e;
cin >> e;
e = d+(d-c);
cout << a << " " << b << " " << c << " "<< d << " " << e << " " << endl;
}
else if (b/a == d/c){
int e;
cin >> e;
e = d*(d/c);
cout << a << " " << b << " " << c << " "<< d << " " << e << " " << endl;
}
}
return 0;
}
我還蠻好奇為甚麼只能輸出一行的 是while不能用在這題還是?