write program for palindrome
Answers were Sorted based on User's Feedback
Answer / 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 |
How do I use arrays in c++?
describe private access specifiers?
What is an ABC: an "Abstract Base Class"?
Show the application of a dynamic array with the help of an example.
Why should you learn c++?
In a function declaration, what does extern mean?
State the difference between delete and delete[].
Does there exist any other function which can be used to convert an integer or a float to a string?
pls help.. paper bills.. 1000, 500, 100, 50, 20, 10, 5, 1.. create a program that will count all the paper bills in the number being input.. example: enter a number: 3886 there is/are: 3 ->1000 1 ->500 3 ->100 1 ->50 1 ->20 1 ->10 1 ->5 1 ->1 example2: enter a number: 728 there is/are: 0 ->1000 1 ->500 2 ->100 0 ->50 1 ->20 0 ->10 1 ->5 3 ->1
Why do we use the using declaration?
Perform addition, multiplication, subtraction of 2-D array using Operator Overloading.
Inline parameters : What does the compiler do with the parameters of inline function, that can be evaluated in runtime ?