Answer Posted / arnab
#include<iostream.h>
#include<conio.h>
void main()
{ int num, num1, rem, rev=0;
cin>>num;
num1=num;
while(num!=0)
{
rem=num%10;
rev=rev*10+rem;
num=num/10;
}
if(num1==rev)
cout<<"yes the no. is pallindrome";
else
cout<<"no the no. is not pallindrome";
getch();
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Is c is a procedural language?
Why doesnt that code work?
What are data structures in c and how to use them?
What is a lookup table in c?
What is the meaning of ?
In which language linux is written?
What are the types of type specifiers?
How many levels deep can include files be nested?
When should the const modifier be used?
Explain how can you tell whether a program was compiled using c versus c++?
What is string length in c?
Why is c not oop?
In a switch statement, explain what will happen if a break statement is omitted?
Which type of language is c?