write program for palindrome
Answer Posted / felix
#include<stdio.h>
#include<conio.h>
void main()
{
int n,s=0,m;
clrscr();
printf("enter any no");
scanf("%d",&n);
m=n;
while(n>0)
{
r=n%10;
s=s*10+r;
n=n/10;
}
if(m==n)
printf("the no is palindrome");
else
printf("no is not palindrome");
getch();
}
| Is This Answer Correct ? | 242 Yes | 354 No |
Post New Answer View All Answers
What is split a string in c++?
What is the two main roles of operating system?
Explain the properties and principles of oop.
What do you mean by public protected and private in c++?
What are the differences between new and malloc?
Write a short code using c++ to print out all odd number from 1 to 100 using a for loop
Define linked lists with the help of an example.
Explain about vectors in c ++?
What relational operators if statements in c++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
What is main function in c++ with example?
Write is a binary search tree? Write an algo and tell complexity?
What is the identity function in c++? How is it useful?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create
What are member functions used in c++?