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
Is c++ an oop?
Describe protected access specifiers?
What is the identity function in c++? How is it useful?
Is dev c++ free?
Const char *p , char const *p What is the difference between the above two?
Write about the various sections of the executable image?
Can non-public members of another instance of the class be retrieved by the method of the same class?
How is data hiding achieved in c++?
Is c++ a software?
What is dev c++ used for?
What is a buffer c++?
What is function prototyping? What are its advantages?
What is else if syntax?
what Is DCS ? what i will get benefit when i did?
Write a c program for binary addition of two 8 bit numbers.