Print all the palindrome numbers.If a number is not
palindrome make it one by attaching the reverse to it.
eg:123
output:123321 (or) 12321
Answer Posted / sahibzada nisar ahmad
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int a,b,c,d,e;
printf("Enter Three Digits Number=");
scanf("%d",&a);
b=a/100;
c=a%100;
d=c/10;
e=c%10;
printf("\n\tThe Reverse Number is =%d%d%d=",e,d,b);
getch();
}
| Is This Answer Correct ? | 6 Yes | 13 No |
Post New Answer View All Answers
What is the difference between abs() and fabs() functions?
Explain how do you use a pointer to a function?
What is string constants?
Explain how can you check to see whether a symbol is defined?
Differentiate Source Codes from Object Codes
What does sizeof return c?
What are the two forms of #include directive?
What is c method?
Why should I use standard library functions instead of writing my own?
What is the meaning of ?
Is main a keyword in c?
What is sizeof return in c?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
Write a code to determine the total number of stops an elevator would take to serve N number of people.