1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Factorial Operator/Function

Discussion in 'Programming' started by aspie, Nov 5, 2001.

  1. aspie

    aspie It's all good baby.

    Joined:
    Feb 24, 2001
    Messages:
    315
    Likes Received:
    0
    Does one exist?
     
  2. usaar33

    usaar33 Un1337

    Joined:
    Mar 25, 2000
    Messages:
    808
    Likes Received:
    0
    no but here is one:

    Code:
    static final postoperator int ! ( out int A )
    {
      local int b;    
      b=A-1;
      While (b>1){
            A*=b;
            b--;        
      }
    A=b;
    }
    
    Now just do intvar!;
    :)
     

Share This Page