93c16edb5a
- 修正主README.md中的所有路径引用,使其与当前文件结构一致 - 更新翁凯C语言学习指南链接路径 - 更新五子棋AI项目文档链接路径 - 更新数据结构学习文档链接路径 - 修正编译说明和学习模块使用指南中的目录路径 - 改进五子棋README.md的编译运行说明,增加Windows和Linux/macOS的分平台指导 - 确保所有文档链接和路径引用都能正确工作
33 lines
344 B
C
33 lines
344 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <time.h>
|
|
|
|
int main()
|
|
{
|
|
int x;
|
|
int a=0;
|
|
int n=0;
|
|
int m=0;
|
|
printf("请输入数字:");
|
|
scanf("%d", &x);
|
|
|
|
do{
|
|
a = x%10;
|
|
n = n*10+a;
|
|
x = x/10;
|
|
} while (x>0);
|
|
|
|
do{
|
|
m = n%10;
|
|
printf("%d", m);
|
|
if (n>=10)
|
|
{
|
|
printf(" ");
|
|
}
|
|
n = n/10;
|
|
} while (n>0);
|
|
printf("\n");
|
|
|
|
return 0;
|
|
}
|