发布网友 发布时间:2022-06-15 22:45
共2个回答
热心网友 时间:2023-10-29 14:24
#include <stdio.h>
int rev(int n)
{printf("%d",n%10);
if(n>9)return 1+rev(n/10);
return 1;
}
int main()
{ int n;
scanf("%d",&n);
printf("\n%d\n",rev(n));
return 0;
}
热心网友 时间:2023-10-29 14:25
# include "stdio.h"int invert(long m){ printf("%ld", m%10); m = m/10; if (m>0) invert(m) ;}