前田稔(Maeda Minoru)の超初心者のプログラム入門
/***************************************************/ /*★ 円周率を4000桁まで計算する 前田 稔 ★*/ /***************************************************/ using System; class Prog { static short[] t = new short[4] { 3, 1415, 9265, 3589 }; //★Main() 関数 public static void Main() { Console.WriteLine("円周率= {0}.{1:d4}{2:d4}{3:d4}",t[0],t[1],t[2],t[3]); Console.ReadLine(); } } |
[Next Chapter ↓] 4000桁を表示
[Previous Chapter ↑] 円周率の話と実行結果