#include <stdio.h> int main(void) { long long result = 1; for (int i = 1; i <= 20; i++) { result *= i; printf("%2d!=%lld\n", i, result); } return 0; }
#include "stdio.h" void main(){ int i , j; double t; for(i = 1 ; i <= 20 ; i++){ for(t = 1 , j = i ; j > 1 ; j--) t = t * j ; printf("1"); for(j = 2 ; j <= i ; j++) printf("*%d",j); printf("=%.0lf\n",t); } }
#include <stdio.h> int main(void) { int i; long long j = 1; for (i = 1; i <= 20; i++) j *= i; printf("%lld", j); return 0; }
[此贴子已经被作者于2019-1-14 20:42编辑过]
[此贴子已经被作者于2019-1-15 17:53编辑过]