#include<stdio.h>
#include<conio.h>
void main()
{
int a,x=0;
puts("Enter the number");
scanf("%d",&a);
while(a!=0)
{
x=(x*10)+(a%10);
a=a/10;
}
printf("Reverse is %d",x);
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a,x=0;
puts("Enter the number");
scanf("%d",&a);
while(a!=0)
{
x=(x*10)+(a%10);
a=a/10;
}
printf("Reverse is %d",x);
}
Comments
Post a Comment