修改文件结构。
This commit is contained in:
12
POP/07/Optional01.c
Normal file
12
POP/07/Optional01.c
Normal file
@@ -0,0 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <math.h>
|
||||
|
||||
int main() {
|
||||
int i = 1;
|
||||
double count = 0;
|
||||
for (; i < 1001; i++) {
|
||||
count += log10(i);
|
||||
}
|
||||
printf("1000! has %d digits.", ((int)count) + 1);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user