write program for palindrome

Answer Posted / surya

#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,r;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
rev=rev*10+r;
n=n/10;
}
printf("reverse of the number is %d",rev);

}

Is This Answer Correct ?    14 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is c++ an oop?

794


Describe protected access specifiers?

877


What is the identity function in c++? How is it useful?

767


Is dev c++ free?

779


Const char *p , char const *p What is the difference between the above two?

889






Write about the various sections of the executable image?

733


Can non-public members of another instance of the class be retrieved by the method of the same class?

791


How is data hiding achieved in c++?

757


Is c++ a software?

899


What is dev c++ used for?

769


What is a buffer c++?

762


What is function prototyping? What are its advantages?

790


What is else if syntax?

867


what Is DCS ? what i will get benefit when i did?

2022


Write a c program for binary addition of two 8 bit numbers.

3862