bsc

Comprehensive codebase and cou...
Log | Files | Refs | README | LICENSE

APC-PRAC-016.c (845B)


      1 /*
      2  * Author: Amit Dutta (amitdutta4255@gmail.com) | Date: 12 Dec 2025
      3  * Repo: https://github.com/notamitgamer/bsc
      4  * License: MIT
      5  */
      6 
      7 /* Write a program to check palindrome number. */
      8 // File Name - amit0611202502.c (LAB), APC-PRAC-016.c (Local)
      9 
     10 // This code has not been compiled.
     11 // If you find any issues, please create a new issue on GitHub regarding them.
     12 // Go to this link to create a new issue: https://github.com/notamitgamer/bsc/issues
     13 
     14 #include <stdio.h>
     15 
     16 int main()
     17 {
     18     int num, temp, rev = 0;
     19     printf("Enter the number : ");
     20     scanf("%d", &num);
     21     temp = num;
     22     while (temp > 0)
     23     {
     24         rev = (rev * 10) + (temp % 10);
     25         temp /= 10;
     26     }
     27     if (rev == num)
     28         printf("\nInput %d is a palindrome number.", num);
     29     else
     30         printf("\nInput %d is not a palindrome number.", num);
     31     return 0;
     32 }
© notamitgamer • Site Built: 2026-07-21 13:58:23 UTC • git-mirror commit: 1037f62 [view raw info]
Originally created with stagit • modified by notamitgamer
Forked from github.com/notamitgamer/git-mirror