Code 1:
#include<stdio.h> int main() { you work; you y; you are a, b, c; printf ( " Please enter a three-digit number: " ); scanf_s("%d",&x); a=x/100; b=x/10%10; c=x%10; and = 100 * c + 10 * b + a; the printf ( " reverse output D% \ n- " , Y); }
Code 2:
#include<stdio.h> int main() { int m, n; printf ( " Please enter a three-digit integer: \ the n- " ); scanf_s("%d", &m); n- = m% 10 * 100 + m / 10 % 10 * 10 + m / 100 ; // to the bits, ten, one hundred multiplied by the corresponding number of bits obtained by adding the printf ( " reverse output% d \ the n- " , the n-); }
Code 3:
#include<stdio.h> int main() { int x; printf ( " Please enter a three-digit number: " ); scanf_s("%d", &x); the printf ( " reverse output D% D% D% \ n- " ,% X 10 , X / 10 % 10 , X / 100 ); return 0 ; }
result: