#include<iostream>
using namespace std;
int main()
{
float h = 100;
float s[10] = { 0 };
int i;
for (i = 1; i < 9; i++)
{
s[i] = s[i-1] + h;
h = h / 2;
}
for (int i = 0; i < 10; i++)
cout << s[i] << endl;
system("pause");
return 0;
}
小球落地
最新推荐文章于 2022-08-02 15:45:18 发布