/* Palindrome number using for loop */
#include<stdio.h>
int main()
{
int a, s, t;
printf("Enter value of a: ");
scanf("%d",&a);
t=a;
for(s=0;a>0;a=a/10)
{
s = s*10;
s = s + (a%10);
}
if(t == s)
printf("Palindrome");
else
printf("Not Palindrome");
return 0;
}
Related Post:
Palindrome number using while loop
http://cbasicprogram.blogspot.in/2012/03/palindrome-number-using-while-loop.html
#include<stdio.h>
int main()
{
int a, s, t;
printf("Enter value of a: ");
scanf("%d",&a);
t=a;
for(s=0;a>0;a=a/10)
{
s = s*10;
s = s + (a%10);
}
if(t == s)
printf("Palindrome");
else
printf("Not Palindrome");
return 0;
}
Related Post:
Palindrome number using while loop
http://cbasicprogram.blogspot.in/2012/03/palindrome-number-using-while-loop.html
Cool... :)
ReplyDeleteAttention everyone, the file provided above is not working. I have been looking for the working file and finally found it.
Delete✔️Click Here To Download http://gestyy.com/e0GAyS
✔️Click Here To Download
✔️Click Here To Download http://exe.io/XONVsO6l
✔️Click Here To Download
✔️Click Here To Download
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
Mn.
..
.
.
.
..
.
.
.
.
.
.
.
.
.
.
..
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.xzxz
.sdcccxxx
good..........:)
ReplyDeletesexy
ReplyDeleteexplanation in comment section might made it best but still good effort
ReplyDeletegooddd
ReplyDeleteits not working for 121 and other small digits,kindly help
ReplyDeleteNot working for 121
ReplyDeleteIt’s fake
ReplyDeletethe program doesnt give the correct output bruh
ReplyDeletehttps://maytinhtrananh.vn/sua-may-tinh-may-in.html
ReplyDeletehttps://phalebinhminh.com