Feed Headline Animator

If a five digit number is input through the keyboard, write a program to reverse the number.

main( )
{
int n,r;
printf(“/n Enter a number”);
scanf(“%d”, &n);
Printf(“/n The number in revers”);
r= n%10;
n=n/10;
printf(“Reminder=%d”,r);
r=n%10;
n=n/10;
printf(“Reminder=%d”,r);
r=n%10;
n=n/10;
printf(“Reminder=%d”,r);
r=n %10;
n=n /10;
printf(“Reminder of r % d Reminder of n %d”,r,n);
}


Posted by: Wasim Javed

No comments:

Post a Comment