#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c,d,e,f;
printf(“Enter 4-Digit Number : ”);
scanf(“%d”,&a);
b=a%10;
c=b%10;
d=c%10;
e=d%10;
f=b*1000+c*100+d*10+e;
printf(“%d”,f);
getch();
}
OUTPUT:
Enter 4-Digit Number : 1234
4321
0 comments:
Post a Comment