This commit is contained in:
2025-07-10 12:10:31 +09:00
parent e2d2e70dfb
commit b103fac43e
48 changed files with 488 additions and 106 deletions

23
programs/p411/main.c Normal file
View File

@@ -0,0 +1,23 @@
#include <stdio.h>
int main(void) {
int n;
do {
printf("Input positive integer: ");
scanf("%d", &n);
if (n <= 0) {
puts("\aPlease input non-negative, non-zero integer.");
}
} while (n <= 0);
printf("Reverse of %d is ", n);
while (n > 0) {
printf("%d", n % 10);
n /= 10;
}
puts(".");
return 0;
}