#include<stdio.h>
int main()
{
int num , rem=0, sum=0 , temp ;
printf(" Enter the number : ");
scanf(" %d ", &num);
temp =num ;
while(temp >0)
{
rem= temp %10;
sum = (sum*10)+rem;
temp = temp /10 ;
}
if(num==sum)
printf(" %d is a pelindrome number ", num);
else
printf(" %d is not a pelindrome number ", num);
return 0 ;
}
OUTPUT :Enter the number : 151
151 is a pelindrome number
Enter the number : 169
169 is a pelindrome number
Follow
Me On Social Media :-
INSTA photography page :- https://www.instagram.com/photo_mania_hub/
Twitter link : - https://twitter.com/ApurbaKhanra199
Facebook page link (Crazy Coders) :-https://www.facebook.com/codercrazy/?modal=admin_todo_tour
Insta photography link :- https://www.instagram.com/photo_mania_hub/
Facebook link :- https://www.facebook.com/profile.php?id=100009747586288
For tech related videos visit my other website :- https://apurbatechinfo.blogspot.com/
0 Comments