#include<stdio.h>
#include<stdlib.h>
int main()
{
int shang,n,i=0,ws=0,x=1;
char *p=malloc(100);
puts("please input.\n");
scanf("%d",&n);
if(n==0){
putchar('0'); return(0);
}
else if(n<0){
n=-n; *p='-'; i++;
}
while(n>=x){
x=x*10;ws++;
}
while((x/=10)!=0){
shang=n/x;
switch(shang){
case 0 :*(p+i)='0';break;
case 1 :*(p+i)='1';break;
case 2 :*(p+i)='2';break;
case 3 :*(p+i)='3';break;
case 4 :*(p+i)='4';break;
case 5 :*(p+i)='5';break;
case 6 :*(p+i)='6';break;
case 7 :*(p+i)='7';break;
case 8 :*(p+i)='8';break;
case 9 :*(p+i)='9';break;
}
i++;
n=n-shang*x;
}
puts(p);
}
#include<stdlib.h>
int main()
{
int shang,n,i=0,ws=0,x=1;
char *p=malloc(100);
puts("please input.\n");
scanf("%d",&n);
if(n==0){
putchar('0'); return(0);
}
else if(n<0){
n=-n; *p='-'; i++;
}
while(n>=x){
x=x*10;ws++;
}
while((x/=10)!=0){
shang=n/x;
switch(shang){
case 0 :*(p+i)='0';break;
case 1 :*(p+i)='1';break;
case 2 :*(p+i)='2';break;
case 3 :*(p+i)='3';break;
case 4 :*(p+i)='4';break;
case 5 :*(p+i)='5';break;
case 6 :*(p+i)='6';break;
case 7 :*(p+i)='7';break;
case 8 :*(p+i)='8';break;
case 9 :*(p+i)='9';break;
}
i++;
n=n-shang*x;
}
puts(p);
}