Module: (C++) 재귀


Problem

10/12

숫자를 16진법으로

Theory Click to read/hide

유용한 정보
영문자 'A' 코드는 65입니다.
레코드 char c = 65; 변수 c에 영문자 A를 저장합니다.
따라서 코드로 원하는 문자를 얻을 수 있습니다.

Problem

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

입력
프로그램에 대한 입력은 숫자 N(N <= 4096) - 10번째 숫자 체계의 숫자입니다.

출판물
화면에 하나의 숫자 표시 - 16진수 체계의 숫자
 
<헤드> <몸>

# 입력 출력
1 123 70억
Write the program below
main()
{
  int N;
  cin >> N;
  printfHex(N);
}          

     

Program check result

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