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
write a program to convert a expression in polish notation(postfix) to inline(normal) something like make 723+* (2+3) x 7 (not sure) just check out its mainly printing expression in postfix form to infix.
Explain what are run-time errors?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)
Is there a way to jump out of a function or functions?
Calculate 1*2*3*____*n using recursive function??
What is n in c?
When can a far pointer be used?
What are runtime error?
What is difference between constant pointer and constant variable?
What is formal argument?
What is register variable in c language?
Stimulate calculator using Switch-case-default statement for two numbers
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
Write a program to swap two numbers without using third variable?