#include <stdio.h>
#include <conio.h>
void main()
{
int no,rev;
clrscr();
printf("Enter the number:-");
scanf("%d",&no);
ent:
rev=no%10;
no=no/10;
if (no>0)
goto ent;
if (no==rev)
printf("%d is equal to reverse no",no);
else
printf("%d is not equal to reverse no",no);
getch();
}
No comments:
Post a Comment