C-trip only and do-while seeking the factorial of n

Ⅰ, with do-while seeking the factorial of n:
①, can be run directly off of code //
// n factorial (n!)
#Include <stdio.h>
int main ()
{
int T, n, Result;
Result . 1 =;
the printf ( "Please the Number of n-iNPUT \ n-!");
Scanf ( "% D", & n-);
T = n-;
IF (n-> 0) // should be taken to ensure positive input values
{
do
{
result = n-*;
N-;
} the while (n-);
}
the printf ( "% D% = D \ n-!", T, result);
return 0;
}
②, the results show:
For example: this program runs is the factorial of n seek; do-while loop is used to implement this process!
Here Insert Picture Description
☺ Message:
Ⅰ, this program runs on the Visual C ++ version 6.0;
Ⅱ, if I give the procedure in question, or there is a problem in terms of narrative, I can not read or explain the meaning, or message, and please indicate I discuss, thank you big brother! ! !
Ⅲ, recommend to you a technique to improve Web site: tutorial rookie network, but also for everyone to check online!

Published 40 original articles · won praise 0 · Views 607

Guess you like

Origin blog.csdn.net/weixin_43405300/article/details/103759528