例2.20 将例2.16表示的算法(求5!)用C语言表示。
main( )
{int i,t;
t=1;
i=2;
while(i<=5)
{t=t*i;
i=i+1;
}
printf("%d",t);
}