标签:main std int clu == scanf include for print
#include"stdio.h"
int main(){
int arr[31]={0};
int a,b,c,i=0;
scanf("%d %d %d",&a,&b,&c);
int t=a+b;
if(t==0){
printf("0");
return 0;
}
while(t){
arr[i++]=t%c;
t/=c;
}
for(int k=i-1;k>-1;k--)
printf("%d",arr[k]);
return 0;
}
标签:main std int clu == scanf include for print
原文地址:https://www.cnblogs.com/tao7/p/9768598.html