15,395,181 members
Home / Discussions / C#

# C#

 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 22:13 OriginalGriff 22-Aug-20 22:13
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:31 Exoskeletor 22-Aug-20 22:31
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:32 Exoskeletor 22-Aug-20 22:32
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 22:33 OriginalGriff 22-Aug-20 22:33
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:37 Exoskeletor 22-Aug-20 22:37
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 22:43 OriginalGriff 22-Aug-20 22:43
 Re: How to calculate in c# the possibility of this game Exoskeletor22-Aug-20 22:57 Exoskeletor 22-Aug-20 22:57
 Re: How to calculate in c# the possibility of this game OriginalGriff22-Aug-20 23:05 OriginalGriff 22-Aug-20 23: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#Copy Code ```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 Exoskeletor22-Aug-20 23:28 Exoskeletor 22-Aug-20 23:28
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 12:51 Luc Pattyn 23-Aug-20 12:51
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:01 Exoskeletor 23-Aug-20 13:01
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 13:03 Luc Pattyn 23-Aug-20 13:03
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:06 Exoskeletor 23-Aug-20 13:06
 Re: How to calculate in c# the possibility of this game trønderen23-Aug-20 13:28 trønderen 23-Aug-20 13:28
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 13:33 Exoskeletor 23-Aug-20 13:33
 Re: How to calculate in c# the possibility of this game Luc Pattyn23-Aug-20 15:57 Luc Pattyn 23-Aug-20 15:57
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 0:35 Exoskeletor 24-Aug-20 0:35
 Re: How to calculate in c# the possibility of this game Richard MacCutchan24-Aug-20 1:04 Richard MacCutchan 24-Aug-20 1:04
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 1:10 Exoskeletor 24-Aug-20 1:10
 Re: How to calculate in c# the possibility of this game Eddy Vluggen24-Aug-20 12:52 Eddy Vluggen 24-Aug-20 12:52
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 23:22 Exoskeletor 24-Aug-20 23:22
 Re: How to calculate in c# the possibility of this game Luc Pattyn24-Aug-20 7:48 Luc Pattyn 24-Aug-20 7:48
 Re: How to calculate in c# the possibility of this game Exoskeletor24-Aug-20 23:22 Exoskeletor 24-Aug-20 23:22
 Re: How to calculate in c# the possibility of this game trønderen26-Aug-20 0:50 trønderen 26-Aug-20 0:50
 Re: How to calculate in c# the possibility of this game Exoskeletor23-Aug-20 19:23 Exoskeletor 23-Aug-20 19:23
 Last Visit: 31-Dec-99 18:00     Last Update: 14-Aug-22 9:20 Refresh ᐊ Prev1...126127128129130131132133134135 Next ᐅ

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.