static int factorial(int i) { int n = 1; while (i > 1) n *= i--; ret n; }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
| Snippet ID: | #1010322 | 
| Snippet name: | factorial - returns int (may overflow) | 
| Eternal ID of this version: | #1010322/1 | 
| Text MD5: | 63642772c6faa7f8766605576f3d494b | 
| Author: | stefan | 
| Category: | javax | 
| Type: | JavaX fragment (include) | 
| Public (visible to everyone): | Yes | 
| Archived (hidden from active list): | No | 
| Created/modified: | 2017-09-11 21:03:00 | 
| Source code size: | 83 bytes / 5 lines | 
| Pitched / IR pitched: | No / No | 
| Views / Downloads: | 708 / 762 | 
| Referenced in: | [show references] |