Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as C# by dron13 ( 19 years ago )
string Result = null;
            int carry = 0;
            int Sum = 0;
            for (int i = max - 1; i >= 0; i--)
            {
                carry = (carry + first[i] + second[i]) / 4;
                Sum = ((carry + first[i] + second[i]) % 4) + Sum;
                Result = Sum.ToString() + Result;
            }
            return (Result);

 

Revise this Paste

Your Name: Code Language: