How to Create Palindrome of any input degits in Turbo C

  • How to Create Palindrome of any input degits in Turbo C

  • 1 Comment sorted by



  • #include
    #include
    main()
    {
    long num;
    clrscr();
    printf("\nEnter any five digit number:");
    scanf("%ld",&num);
    if(num>=10000 && num<=99999)<br /> {
    if((num%10)==((num-(num%10000))/10000) && (((num%10000)-(num%1000))/1000)==(((num%100)-(num%10))/10))
    {
    printf("\nPalindrome");
    }
    else
    {
    printf("\nNot a palindrome");
    }
    }
    getch();
    }



Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

Top Posters Weekly

Optimum Creative