sahajjain01

[*]15.Input a number and check if it's palindrome or not.

Aug 16th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. //Program to input a number and check if it's palindrome or not.
  2. #include<stdio.h>
  3. #include<conio.h>
  4.  
  5. void main()
  6. {
  7.     int number,
  8.  
  9.     clrscr();
  10.  
  11.     printf("Enter number: ");
  12.     scanf("%d", &number);
  13.    
  14.     while(number != 0) {
  15.         number % 10);
  16.         number = number / 10;
  17.     }
  18.  
  19.     getch();
  20. }
Advertisement
Add Comment
Please, Sign In to add comment