#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;
}

标签: none

添加新评论