• 2023-11-05进制转换
    1.十进制到n进制的转换(n<10)原因:不知道如何实现A~F的输出。原代码,只能实现到n进制,n<10#include<stdio.h>#include<stdlib.h>intmain(){intnewbase,num,q=1,r,newnum=0,count=1,i;printf("thenewbase:");scanf("%d",&newbase);
  • 2022-10-10实现进制转化伪代码
    用C语言实现下面伪代码描述的进制转换程序,提交运行结果截图,至少三张,包含转换为二进制,八进制,十六进制的截图#include<stdio.h>#include<stdlib.h>intmain(void){in
  • 2022-10-09十进制转换其他进制的代码
    include<stdio.h>intmain(){intnumber,newbase;//number为十进制数,newbase为目标进制大小printf("Inputnumber:\n");scanf("%d",&number);printf("Inputnewbase
  • 2022-10-08实现进制转化伪代码
    伪代码Write"Enterthenewbase"ReadnewBaseWrite"Enterthenumbertobeconverted"ReaddecimalNumberSetquotientto1WHILE(quotientisnotzero) Set