Revers program for integer values.
Program:
#include<stdio.h>
main()
{
int n,x;
printf("Enter your value = ");
scanf("%d", &n);
while (n!=0)
{
x=n%10;
printf("%d", x);
n=n/10;
}
}
Program:
#include<stdio.h>
main()
{
int n,x;
printf("Enter your value = ");
scanf("%d", &n);
while (n!=0)
{
x=n%10;
printf("%d", x);
n=n/10;
}
}