CodePudding user response:
You didn't see the following s put t of each time, after the t value is 1CodePudding user response:
Every time t into 1 is to calculate the new factorial, take is depend on the number of times I changeCodePudding user response:
Can explain two loopsCodePudding user response:
Each loop, t have to start from 1, or idea is not right!T is also not have to start from 1, only the code you want to change a kind of writing can
T=1; S=0;
For (I=1; I<=10; + + I) {
T *=I
S +=t;
}
This is possible, the inner loop is not
all over
It didn't, the book is to make people more easily understand, t is the I factorial