write program for palindrome
Answer Posted / madhupriya
#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 ? | 1 Yes | 1 No |
Post New Answer View All Answers
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What is &x in c++?
Are strings mutable in c++?
How to defines the function in c++?
What are the advantages of inheritance in c++?
Are php strings immutable?
What are proxy objects in c++?
Is java easier than c++?
What is iomanip c++?
What is constructor in C++?
Which programming language should I learn first?
Who invented turbo c++?
What is a set in c++?
What is c++ array?
When there is a global variable and local variable with the same name, how will you access the global variable?