LED PANEL

Google It, You'll Get It.

Monday, January 31, 2011

Taking the Inverse of an Input

Input : 85974
Output : 47958


#include<"stdio.h">
main()
{
int numb, rem, i;
printf("Input a 5 digit number \n");
scanf("%d",&numb);
i = 1;

while(i<=5)
{
rem=numb%10;
numb=numb/10;
printf("%d",rem);
i++;
rem=0;

}


}

No comments:

Post a Comment