|
|
От: |
Andy77
|
|
| Дата: | 28.03.03 16:43 | ||
| Оценка: | |||
public static string GetCode(int i)
{
string alphabet = "0123456789ABCDEF";
int len = alphabet.Length;
string res = "";
int c = i;
while (c > 0)
{
res = alphabet[c % len] + res;
c /= len;
}
return res;
}