// Converts from decimal to any number system < 17.
string convert(int n /* decimal number to convert */, int b 
			/* base - must be < 17 & pos. */)
{
	if (n == 0)
		return "";
	else
	{
		if (n > 0)
		{
			int remainder = n % b;
			if (remainder > 9)
				return convert(n / b, b) + char(remainder+55);
			else
				return convert(n / b, b) + char(remainder+48);
		}
	}
}

