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...


write a program that input four digit no and finds it is
palindrome or not

Answers were Sorted based on User's Feedback



write a program that input four digit no and finds it is palindrome or not..

Answer / karthik p b

#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

write a program that input four digit no and finds it is palindrome or not..

Answer / abhi

use stack

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More STL Interview Questions

What is stl in oop?

0 Answers  


Write a program in C/C++ to implement reader- writer problem

1 Answers   Wipro,


I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?

2 Answers  


What is C++ could you enplane me please?

1 Answers  


Why should a c++ programmer be interested in stl?

0 Answers  


sir please send me bpcl previous question papers

0 Answers   BPCL Bharat Petroleum,


Who wrote stl?

0 Answers  


What is 2*2?

7 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

0 Answers  


What are stl algorithms?

0 Answers  


What is stl stand for?

0 Answers  


Write a program in C++ returning starting locations of a substring using pointers

1 Answers  


Categories