#include<iostream>
#define LEN 100
using namespace std;
int main()
{
int num[LEN], a = 3, q = 2;
int i = 0, j, k, t = a;
do {
num[i++] = t;
t *= q;
} while (num[i] < 720);
int s, flag = 0;
for (int i = 0;i < LEN;i++)
{
s = 0;
j = k = i;
while (s < 720 && k < LEN)
s += num[k++];
if (s == 720)
{
k--;
flag = 1;
break;
}
}
if (flag = 1)
{
cout << "第" << j << "项~第" << k << "项的和是720" << endl;
while (j <= k)
cout << num[j++] << '\t';
cout << endl;
}
else cout << "没有满足条件的项" << endl;
system("pause");
}
在最后会显示这个:

这是什么意思啊?