0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

はじめに

この記事は 共通テスト手順記述標準言語 (DNCL) Advent Calendar 2025 の17日目の記事です。

DNCLで基数変換をするプログラムを作ります。

基数とは

基数とは、一つの桁に何種類の文字が出てくるか、ということ。2進数なら0と1の2種類、10進数なら0~9の10種類です。

基数変換を書く

基数変換
kisu ← 2
n ← 24

result ← ""
n > 0 の間、
|  result ← (n % kisu) + result
|  n ← n ÷ kisu
を繰り返す
result を表示する
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?