首页 > TAG信息列表 > newBase

实现进制转化伪代码

实现进制转化伪代码 伪代码 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 R

实现进制转化伪代码

实现进制转化伪代码 伪代码 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 decimalNumb

实现进制转化伪代码

代码 newBase = eval(input("请输入进制类型")) decimalNumber = eval(input("请输入数据")) quotient = 1 answer = '' list = {'10': 'A', '11': 'B', '12': 'C', '13': 'D�

实现进制转换伪代码

伪代码: 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 ne

实现进制转化伪代码

实现进制转化伪代码 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 n

20201220蔡笃俊进制转换的学习

娄老师给出的伪代码是英文= =,一开始绕晕我了,给大家翻译一一下,以免像我一样= = newBase在这伪代码中的意思应该是新的进制数,decimalNumber是你要转换的数,quotient是短除法的商,remainder是余数。这样一来伪代码就很容易看懂了。 Write "Enter the new base" Read newBase Write "Ent