Monday, 10 December 2012

reverse the numbers

HOW TO REVERSE THE NUMBERS

#include<stdio.h>
int main()
{

int b=5432,c,d,e;
printf("enter the no in same way\n");
printf("%d \n",b);
c=b%10;
b=b/10;
printf("%d",c);
d=b%10;
b=b/10;
printf("%d",d);
e=b%10;
b=b/10;
printf("%d",e);
printf("%d",b);
printf("the reverse way \n");

}

No comments:

Post a Comment