#include <stdio.h>
main()
{ int N,a,b,c,RN;
printf("enter a three digit no.\n");
scanf("%d",&N);
a=N%10;
N=N/10;
b=N%10;
N=N/10;
c=N;
RN=100*a+10*b+c;
printf("no.after reversing became %d",RN);
}
main()
{ int N,a,b,c,RN;
printf("enter a three digit no.\n");
scanf("%d",&N);
a=N%10;
N=N/10;
b=N%10;
N=N/10;
c=N;
RN=100*a+10*b+c;
printf("no.after reversing became %d",RN);
}
No comments:
Post a Comment