10的负1000次幂

来源:互联网 发布:python self 编辑:程序博客网 时间:2024/05/07 07:26
#include<stdio.h>#define MAX 1000int main(){    int temp;    int a[MAX] = {0};    a[0] = 1;    int i,j;    for(i = 0; i < MAX; i++)    {        temp = temp;        for(j = 0; j < MAX; j++)        {               a[j + 1] = (a[j] % 3) * 10 + a[j + 1];            a[j] = a[j] / 3;        }    }    for(i = 0; i < MAX; i++)    {        printf("%d",a[i]);    }    return 1;

原创粉丝点击