15,798,278 members
Home / Discussions / C#

# C#

 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:13 OriginalGriff 22-Aug-20 23:13
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:31 Exoskeletor 22-Aug-20 23:31
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:32 Exoskeletor 22-Aug-20 23:32
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:33 OriginalGriff 22-Aug-20 23:33
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:37 Exoskeletor 22-Aug-20 23:37
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:43 OriginalGriff 22-Aug-20 23:43
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 23:57 Exoskeletor 22-Aug-20 23:57
 Re: How to calculate in c# the possibility of this game OriginalGriff23-Aug-20 0:05 OriginalGriff 23-Aug-20 0:05
 That's because C# doesn't contain a factorial function - but it's trivial to create one yourself, it's one of the first exercise beginners are often given. Recursive or iterative, it's simple either way: C# ```private static int FactorialRecursive(int x) { return (x > 1 ? x * FactorialRecursive(x - 1) : 1); } private static int FactorialIterative(int x) { int f = 1; while (x > 1) { f *= x--; } return f; } ```So why couldn't you just write those? Or google for them? "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt AntiTwitter: @DalekDave is now a follower!
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 0:28 Exoskeletor 23-Aug-20 0:28
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 13:51 Luc Pattyn 23-Aug-20 13:51
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:01 Exoskeletor 23-Aug-20 14:01
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 14:03 Luc Pattyn 23-Aug-20 14:03
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:06 Exoskeletor 23-Aug-20 14:06
 Re: How to calculate in c# the possibility of this game trønderen23-Aug-20 14:28 trønderen 23-Aug-20 14:28
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 14:33 Exoskeletor 23-Aug-20 14:33
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 16:57 Luc Pattyn 23-Aug-20 16:57
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 1:35 Exoskeletor 24-Aug-20 1:35
 Re: How to calculate in c# the possibility of this game Richard MacCutchan24-Aug-20 2:04 Richard MacCutchan 24-Aug-20 2:04
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 2:10 Exoskeletor 24-Aug-20 2:10
 Re: How to calculate in c# the possibility of this game Eddy Vluggen24-Aug-20 13:52 Eddy Vluggen 24-Aug-20 13:52
 Re: How to calculate in c# the possibility of this game Exoskeletor25-Aug-20 0:22 Exoskeletor 25-Aug-20 0:22
 Re: How to calculate in c# the possibility of this game Luc Pattyn24-Aug-20 8:48 Luc Pattyn 24-Aug-20 8:48
 Re: How to calculate in c# the possibility of this game Exoskeletor25-Aug-20 0:22 Exoskeletor 25-Aug-20 0:22
 Re: How to calculate in c# the possibility of this game trønderen26-Aug-20 1:50 trønderen 26-Aug-20 1:50
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 20:23 Exoskeletor 23-Aug-20 20:23
 Last Visit: 31-Dec-99 19:00     Last Update: 9-Dec-23 23:50 Refresh ᐊ Prev1...173174175176177178179180181182 Next ᐅ