Answer Posted / selvakumar
#include<stdio.h>
#include<conio.h>
void main()
{
int n,a,b=0,c;
printf("\nEnter any number : ");
scanf("%d",&n);
c=n;
while(n!=0)
{
a = n%10;
b = (b*10)+a;
n = n/10;
}
if(b==c)
printf("\nPalindrome no");
else
printf("\nNot a palindrome no");
printf("\nReverse of the number is %d",b);
getch();
}
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
what do you mean by inline function in C?
Is c is a high level language?
Why is c called a structured programming language?
what is the c source code for the below output? 10 10 10 10 10 10 10 10 10 10 9 9 7 6 6 6 6 6 6 9 7 5 9 7 3 2 2 5 9 7 3 1 5 9 7 3 5 9 7 4 4 4 4 5 9 7 8 8 8 8 8 8 8 8 9
What is structure pointer in c?
Define and explain about ! Operator?
What are the storage classes in C?
Why is c not oop?
Place the #include statement must be written in the program?
What is pragma c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Write a program to swap two numbers without using a temporary variable?
What are valid operations on pointers?
Explain how can a program be made to print the line number where an error occurs?
Do you know what are bitwise shift operators in c programming?