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
Is python a c language?
What is #include stdio h?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Why C language is a procedural language?
What is variable in c example?
Ow can I insert or delete a line (or record) in the middle of a file?
What are structure members?
What is an example of structure?
Explain how can I read and write comma-delimited text?
What is volatile variable in c?
Why is python slower than c?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What are 3 types of structures?
Explain what is the difference between a free-standing and a hosted environment?
What is the function of multilevel pointer in c?