write a program that input four digit no and finds it is
palindrome or not
Answers were Sorted based on User's Feedback
#include<stdio.h>
#include<conio.h>
void main()
{
int n,rev=0,rem, temp,i;
printf(" Enter the 4 digit number :\n");
scanf("%d", &n);
temp = n;
for(i=1;i<=4;i++)
{
rem = n % 10;
n = n/10;
rev = rev * 10 + rem;
}
if(temp == rev)
printf(" Its a palindrome:\n");
else
printf(" Not a palindrome:\n");
getch();
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Who created stl?
wap in c++ which accept a integer array and its size as argument and replaces element having even values with its half and element having odd values with twice its value
Describe the My Computer and My Documents folders; identify the elements that are present in every Window.
HOW TO GET "H1B" -VISA 4 USA FOR MY SON?HE HAD COMPLETED "MS"(IT)FROM AUSTALIA 2007.I AM WORKING IN U.S.A.
What is the use of stl?
What is a stl vector?
what is a template?
2 Answers Amazon, BITS, IBS, Wipro,
i wanted to know about questions about c,c++ , which is required for placements.... im a fresher
differentiate between private, public and protected data members of the class using example.
How the STL's are implemented, What the difference between templates and STL?
What is the stl, standard template library?
give me the defination of inheritance?