Description: A math teacher, often write some multiplication facts, it appears to be wrong, but after binary conversion is correct. For example, 5* 8 = 34, if it is 12-ary calculation is correct. Your goal is to write a program to find the right hex (between 2 and 16), the output is 0 if not found. Note that if many cases, the minimum output hex. Such as 10* 10 = 100, output 2. The first is: 10* 10 = 100 outputs 10, does not comply with the output of 2 decimal first calculate the product of two numbers, and then convert this decimal to hexadecimal 2-16 sequentially given with the original The resulting value comparison, if the same, then the output current of a few decimal, if not equal, then output 0
To Search:
File list (Check if you may need any files):
进制问题.doc