C to C++ Converter Reviews
good
Added: 16.02.2015 13:48, User: afaaqqqqq
Reviewed version: 1.4
Rating: Download Download Download Download Download
#include int main(){ int num,r,sum=0,temp; printf("Enter a number: "); scanf("%d",&num); temp=num; while(num){ r=num%10; num=num/10; sum=sum*10+r; } if(temp==sum) printf("%d is a palindrome",temp); else printf("%d is not a palindrome",temp); return 0; }