#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
© 允许规范转载