user923005 said:
There is no answer to your question.
Of course you are right.
Data type double must hold at least 1e37.
Oh, I think we can do better than that, though. Using C, we can calculate
1!, which isn't terribly interesting, or 2!, which is still pretty dull,
but 3! gets a little more exciting, because it's 6.
So:
3! = 6
6! = 720
720! =
2601218943565795100204903227081043611191521875016945785727541837850835631156947
38224067857795813045708261992057589224725953664156516205201587379198458774083252
91052446903888118841237643411919510455053466586162432719401971139098455367272785
37099345629855586719369774070003700430783758997420676784016967207846280629229032
10716166986726054898844551425719398549944893959449606404513236214026598619307324
93697704776060676806701764916694030348199618814556251955925669188308255149429475
96537274845624628824234526597789737740896466553992435928786212515967483220976029
50569669992728467056374713753301924831358707612541268341586012944756601145542074
95899525635430682886346310849656506827715529962567908452357025521862223581300167
00834523443236821935793184701956510729781804354173890560727428048583995919729021
72661229129842051606757903623233769945396419147517556755769539223380305682530859
99774416757843528159134613403946049012695420288383471013637338244845066600933484
84440711931292537694657354337375724772230181534032647177531984537341478674327048
45798378661870325740593892421570969599463055752106320326349320922073832092335630
99232675044017017605720260108292880423356066430898887102973807975780130560495763
42838683057190662205291174822510536697756603029574043387983471518552602805333866
35713910104633641976909739743228599421983704697910995630338960467588986579571117
65666700391567481531159439800436253993997312030664906013253113047190288984918562
03766669164468791125249193754425845895000311561682974304641142538074897281723375
95538066171980140467793561479363526626568333950976000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000
Aha! That's more of a challenge, isn't it? Right, here we go...
2601218943565795100204903227081043611191521875016945785727541837850835631156947
38224067857795813045708261992057589224725953664156516205201587379198458774083252
91052446903888118841237643411919510455053466586162432719401971139098455367272785
37099345629855586719369774070003700430783758997420676784016967207846280629229032
10716166986726054898844551425719398549944893959449606404513236214026598619307324
93697704776060676806701764916694030348199618814556251955925669188308255149429475
96537274845624628824234526597789737740896466553992435928786212515967483220976029
50569669992728467056374713753301924831358707612541268341586012944756601145542074
95899525635430682886346310849656506827715529962567908452357025521862223581300167
00834523443236821935793184701956510729781804354173890560727428048583995919729021
72661229129842051606757903623233769945396419147517556755769539223380305682530859
99774416757843528159134613403946049012695420288383471013637338244845066600933484
84440711931292537694657354337375724772230181534032647177531984537341478674327048
45798378661870325740593892421570969599463055752106320326349320922073832092335630
99232675044017017605720260108292880423356066430898887102973807975780130560495763
42838683057190662205291174822510536697756603029574043387983471518552602805333866
35713910104633641976909739743228599421983704697910995630338960467588986579571117
65666700391567481531159439800436253993997312030664906013253113047190288984918562
03766669164468791125249193754425845895000311561682974304641142538074897281723375
95538066171980140467793561479363526626568333950976000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000! =
~~^000202~~#AT!!*$$8NO CARRIER