10 is converted into other numbers divided by the number to be converted, that is, into binary divided by 2, into octal divided by 8, into hexadecimal divided by 16, and then the remainder is inverted.
10-2: convert 20 into binary, 20/2= 10 .......... remainder is 0, 1 2 = 5 ........... remainder is 0, 5/2=2 ............ remainder is1,2/2 =/kloc-.
10-8: Convert 20 to octal, 20/8=2 ........... remainder is 4, 2/8=0 ............ remainder is 2, then 20 is converted to octal and 24.