Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the types of i/o functions?

1425


What is c variable?

1103


Apart from dennis ritchie who the other person who contributed in design of c language.

1483


Explain how do you determine a file’s attributes?

1098


The performance of an operation in several steps with each step using the output of the preceding step a) recursion b) search c) call by value d) call by reference

1291


What is structure pointer in c?

1097


Write a program to reverse a given number in c?

1080


Without Computer networks, Computers will be half the use. Comment.

2359


What are structural members?

1071


What is main function in c?

1142


Write a program to identify if a given binary tree is balanced or not.

1238


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

1199


What is modifier & how many types of modifiers available in c?

1075


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2697


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1131