19 lines
354 B
C
19 lines
354 B
C
#include <stdio.h>
|
|
#include <stdint.h>
|
|
|
|
int
|
|
main()
|
|
{
|
|
int64_t exponents[12];
|
|
exponents[11] = 1;
|
|
for (int i = 10; i >= 0; --i)
|
|
exponents[i] = 10 * exponents[i + 1];
|
|
printf("global_variable i64 _exponents[12] = {\n");
|
|
for (int i = 0; i < 12; ++i)
|
|
{
|
|
printf(" %li, /* 10^%d */\n", exponents[i], 11-i);
|
|
}
|
|
printf("};\n");
|
|
return 0;
|
|
}
|