write a program that input four digit no and finds it is
palindrome or not
Answers were Sorted based on User's Feedback
#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 |
What is stl in oop?
Write a program in C/C++ to implement reader- writer problem
I am doing my BS.c MATHS CAN I ABLE TO JOIN IN NIIT?
What is C++ could you enplane me please?
Why should a c++ programmer be interested in stl?
sir please send me bpcl previous question papers
0 Answers BPCL Bharat Petroleum,
Who wrote stl?
What is 2*2?
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.
What are stl algorithms?
What is stl stand for?
Write a program in C++ returning starting locations of a substring using pointers