#include <stdio.h>
main()
{
int a, b;
scanf("%d", &a) ;
do {
a /= 10;
b = a % 10;
printf("%d", b);
} while (a)
return 0;
}
#include <stdio.h>
main()
{
int a, b;
scanf("%d", &a) ;
do {
a /= 10;
b = a % 10;
printf("%d", b);
} while (a)
return 0;
}
本文标题:C语言:设计程序实现一位,两位或者多位数的反向(投机取巧的方法)
本文链接:https://www.haomeiwen.com/subject/rlfvjttx.html
网友评论