Skip to content
Home » Three-Digit Integer Number in Reverse Order

Three-Digit Integer Number in Reverse Order

Learn about Three-Digit Integer Number in Reverse Order in the below code example. Also refer the comments in the code snippet to get a detailed view about what’s actually happening.

Three-Digit Integer Number in Reverse Order

Program:

#include<stdio.h>
int main()
{
  int n = 487;
  printf("%d reverse is %d",n, n%10);
  n = n/10;

  printf("%d%d",n%10,n/10);
  return 0;
}

Output:

987 reverse is 789

Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.

Similar Codes :
C Program to Find Area and Volume of a Cylinder
C Program to Find Volume of a Rectangular Box