Initial commit: C language learning code

This commit is contained in:
2025-07-20 16:30:56 +08:00
commit 06e24173a6
139 changed files with 9303 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int x;
scanf("%d", &x);
int number;
int renum=0;
while(x>0)
{
number = x%10;
printf("%d", number);
renum = renum*10+number;
printf("x=%d, number=%d,renum=%d\n", x, number, renum);
x/=10;
}
printf("%d", renum);
return 0;
}