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 does emoji p mean?
What is a dynamic array in c?
What is define c?
code for find determinent of amatrix
What is meant by 'bit masking'?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is default value of global variable in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What is f'n in math?
explain how do you use macro?
What are the scope of static variables?
How do you define a string?
What is time complexity c?
What do you mean by scope of a variable in c?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250