def convert_10_to_2(): num = 29 keep = "" r = 0 while (num>0): r = num % 2 num = num // 2 keep = str(r) + keep print (keep) convert_10_to_2()
ไม่มีความคิดเห็น:
แสดงความคิดเห็น