#include<iostream>
using namespace std;
int main()
{
    int x, y=1, sum = 0;
    for (x = 1; x <= 6; x++)
    {
        y *= x;
        sum += y;
    }
    cout << sum << '\n';
    system("pause");
    return 0;
}
Last modification:December 5th, 2018 at 07:40 pm
如果觉得我的文章对您有帮助,请随意赞赏:)