Code: Select all
#include <stdio.h>
int main() {
int x;
scanf("%d", &x);
while (x != 0) {
printf("%d", x % 10);
x /= 10;
}
return 0;
}
Code: Select all
#include <stdio.h>
int main() {
int x;
scanf("%d", &x);
while (x != 0) {
printf("%d", x % 10);
x /= 10;
}
return 0;
}