SHARE
TWEET

Untitled

a guest Oct 18th, 2019 87 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. enum Bit
  2.         {
  3.             A=10,B,C,D,E,F,G,
  4.             H,I,J,K,L,M,N,O,P,
  5.             Q,R,S,T,U,V,W,X,Y,Z,
  6.         }
  7.  
  8.         static string Jinsu(int n, int Jin)
  9.         {
  10.             int mak = n;
  11.             int namuji;
  12.             string s = string.Empty;
  13.             char[] s1 = new char[s.Length];
  14.             while(mak / Jin != 0)
  15.             {
  16.                 namuji = mak % Jin;
  17.                 mak /= Jin;
  18.                 if(Jin > 9)
  19.                 {
  20.                     s += (Bit)namuji;
  21.                 }
  22.                 else
  23.                     s += namuji;
  24.             }
  25.             s += mak;
  26.             s1 = s.ToCharArray().Reverse().ToArray();
  27.             s = string.Concat(s1);
  28.             return s;
  29.         }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top