把正整型轉換成2進制與16進制
原題:Write the function itob(n,s,b) that converts the integer n into a base b character
representation in the string s. In particular, itob(n,s,16) formats s as a hexadecimal integer in s.
要求在同一個程序實現2進制與16進制的轉換。
要求在同一個程序實現2進制與16進制的轉換。
程序:



執行:(第一次flag為b)

總結:

總結: