Write a program to find out the number of palindromes in a
sentence.
Answer / ravi
void main()
{
long int n;
printf("ENTER A NUMBER: ");
scanf("%ld",&n);
long int n1,mod;
n1=n;
long int rev=0;
while(n>0)
{
mod = n%10;
rev = rev * 10 + mod;
n = n / 10;
}
if (n1 == rev)
printf("%ld is a palindrome\n",n1);
else
printf("%ld is not a palindrome\n",n1);
}
Is This Answer Correct ? | 7 Yes | 10 No |
create a c++ program that will ask 10 numbers and display their sum using array.
Write A Program using Single and Multiple Inheritance.
What is inheritance write a program to show use of inheritance?
What is balance factor?
what is polymorpsim? what are its types?
all about pointers
The expansion of GNU
What is the example of polymorphism?
What is static modifier?
Is abstract thinking intelligence?
Which is the only operator in C++ which can be overloaded but NOT inherited?
How can we use the preprocessor #if and #elseif.