摘要: #include <stdio.h>#include <math.h>int main(){ int sum,i=0,j=0,ch[100]; char a[10000]; gets(a); while(a[i]!='\0') { sum+=a[i]-'0' ; i++; } int cnt=0,t 阅读全文
posted @ 2020-02-10 17:06 我是个好孩子 阅读(128) 评论(0) 推荐(0) 编辑
摘要: #include<stdio.h>void convert(int n,int m){ int ch[100]; if(m<10) { int x=1,i=0,j;//做余数,除数 while(x>0) { ch[i++]=n%m; x=n/m; n/=m; } while(i--) { print 阅读全文
posted @ 2020-02-10 15:07 我是个好孩子 阅读(127) 评论(0) 推荐(0) 编辑