dannyyeah
幼苗
共回答了14个问题采纳率:92.9% 举报
void main()
{
long s,t=0;
scanf("%ld",&s);
if(s>0)
{
fun(s,&t);
printf("%ldn",t);
}
else
printf("s value errorn");
}
void fun(long s,long *t)
{
long s1=1;
while(s>0)
{
s = s/10;
*t = s%10 * s1 + *t;
s /= 10;
s1 *= 10;
}
}
1年前
4