Write "Enter the new base"
Read newBase
Write "Enter the number to be converted"
Read decimalNumber
Set quotient to 1
WHILE (quotient is not zero)
Set quotient to decimalNumber DIV newBase
Set remainder to decimalNumber REM newBase
Make the remainder the next digit to the left in the answer
Set decimalNumber to quotient
Write "The answer is "
Write answer
相关文章
- 03-21进制转换
- 03-21实现进制转化伪代码
- 03-21Leetcode 1018 可被5整除的二进制前缀
- 03-21实现进制转换伪代码
- 03-21进制转换为伪代码
- 03-21实现进制转化伪代码
- 03-21实现进制转化伪代码
- 03-21获取View的截图-将View转换为Bitmap对象
- 03-21类型转换——SV,systemverilog
- 03-21c-以十进制打印变量的地址