Welcome ! to C Language Extreme Programmings
Blog through learn the programming
complete examples.
write a program in c a five-digit number is input through the keyboard to reverse the number.
#include<stdio.h>
#include<conio.h>
main()
{
int a,b;
clrscr();
printf("\n enter the a number a");
scanf("\n %d",&a);
while(a>0)
{
b=a%10;
printf("\n %d", b);
a=a/10;
}
return (0);