Showing posts with label reverse numbers in C. Show all posts
Showing posts with label reverse numbers in C. Show all posts

Thursday, 12 July 2012

To Reverse Two Numbers in C


#include<stdio.h>
#include<conio.h>
void main()

{
int a,b,c;

printf("\n\nenter a number");
scanf("%d",&a);

b=a%10;

c=a/10;

printf("%d",b);
printf("%d",c);
getche();
}