#include <iostream>
using namespace std;
int main ()
{
int t;
cin >> t;
cout << " \n";
float m[t][4];
for (int i = 0; i < t; i++)
{
for (int j = 0; j < 4; j++)
{
cin >> m[i][j];
}
cout << endl;
}
for (int i = 0; i < t; i++)
{
for (int j = 0; j < 4; j++)
{
cout << m[i][j] << " ";
}
if (m[i][3] - m[i][2] == m[i][1] - m[i][0])
{
cout << m[i][3] + m[i][3] - m[i][2];
}
if (m[i][3] / m[i][2] == m[i][1] / m[i][0])
{
cout << m[i][3] * m[i][3] / m[i][2];
}
cout << endl;
}
}
與正確輸出不相符(line:1)
您的答案為:
正確答案為: 1 2 3 4 5
錯在哪裡,我看不懂他的意思......
麻煩好心人士幫我看一下...謝謝!