七行プログラミング p ..
[2ch|▼Menu]
170:デフォルトの名無しさん
08/11/08 17:46:09
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#define N 100
int main(int c,char**v){uintmax_t m=1,n=1,o=1,i,p;for(c=c>1?atoi(v[1]):10;c;--c
,o=n+=m+=n,putchar('\n'))for(putchar('0'+(p=o/m)),putchar('.'),i=1;i<N;++i)put\
char('0'+(p=(o=(o-p*m)*10)/m));return 0;}


次ページ
続きを表示
1を表示
最新レス表示
スレッドの検索
類似スレ一覧
話題のニュース
おまかせリスト
▼オプションを表示
暇つぶし2ch

5143日前に更新/71 KB
担当:undef