Module: (Python) 서브루틴. 재귀


Problem

10/12

숫자를 16진법으로

Theory Click to read/hide

유용한 정보

영문자 'A' 코드는 65입니다.
항목 c = chr(65) 변수 c에 영문자 A.
를 저장합니다. 따라서 코드로 원하는 문자를 얻을 수 있습니다.

Problem

숫자를 16진수로 변환하는 재귀 절차를 작성하세요. 

입력
프로그램에 대한 입력은 숫자 N(\(N<=4096\)) - 10번째 숫자 체계의 숫자입니다.< br />
출판물
화면에 하나의 숫자를 표시합니다. 16진수 체계의 숫자입니다.

 

<헤드> <일># <몸>

 



입력 출력
1 123 70억
Write the program below
n = int(input())
printHex(n)       

     

Program check result

To check the solution of the problem, you need to register or log in!