Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1026054 // factorial_bigint

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (46L/1K).

static BigInt factorial_bigint(int i) {
  BigInt n = bigint(1);
  while (i > 1) n = mul(n, i--);
  ret n;
}

Author comment

Began life as a copy of #1010322

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1026054
Snippet name: factorial_bigint
Eternal ID of this version: #1026054/2
Text MD5: 740208af87414badd6d924dca39185ab
Transpilation MD5: 90a1d746ed99e7cb3b8817f0828aa090
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-11-16 22:30:59
Source code size: 111 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 259 / 345
Version history: 1 change(s)
Referenced in: [show references]