SlideShare a Scribd company logo
oops
#include<iostream.h>
#include<conio.h>
#include<string.h>
void main()
{
char string[20];
int i,length,flag=0;
clrscr();
cout<<"n Enter the stringn";
cin>>string;
length=strlen(string);
for(i=0;i<length;i++)
{
if(string[i]!=string[length-i-1])
{
flag=1;
break;
}
}
if(flag)
{
cout<<"it is not palindrome";
}
else
{
cout<< "it is palindrome";
}
getch();
}

More Related Content

PDF
contoh Program C++ tentang fungsi for
DOCX
Rafaeltorres
PDF
Bcsl 033 data and file structures lab s1-2
DOC
IMPLEMENTATION OF AUTO KEY IN C++
DOCX
Play fair cipher
PDF
Alocação Dinâmica em C
DOCX
Dado un vector imprimir cuantas vocales tiene
contoh Program C++ tentang fungsi for
Rafaeltorres
Bcsl 033 data and file structures lab s1-2
IMPLEMENTATION OF AUTO KEY IN C++
Play fair cipher
Alocação Dinâmica em C
Dado un vector imprimir cuantas vocales tiene

What's hot (20)

PDF
Ooprc3a
TXT
C Program : Sorting : Bubble,
DOCX
Fcfs Cpu Scheduling With Gantt Chart
DOC
Doi xung mang mot chieu
TXT
N primo clase programa
PDF
Corridas
DOC
Scanfill polygon
TXT
vecotores programacion
TXT
Bai lam chuong 3
DOC
Correcion
DOC
Absolute Loader
DOCX
(Meta 4) ejemplo calcular la mitad de un numero dev c++
DOC
Sources
DOC
Cg lab cse-vii
DOCX
DOCX
DOCX
listing output program C
Ooprc3a
C Program : Sorting : Bubble,
Fcfs Cpu Scheduling With Gantt Chart
Doi xung mang mot chieu
N primo clase programa
Corridas
Scanfill polygon
vecotores programacion
Bai lam chuong 3
Correcion
Absolute Loader
(Meta 4) ejemplo calcular la mitad de un numero dev c++
Sources
Cg lab cse-vii
listing output program C
Ad

More from Ankit Dubey (20)

PDF
Unit 1 android and it's tools quiz {mad cwipedia}
PDF
Scheduling
PDF
Chapter 4
PDF
Chapter 3
PDF
Chapter 2
PDF
Chapter 1
PDF
Chapter 5
PDF
Ch5 cpu-scheduling
PDF
Ch4 threads
PDF
Ch3 processes
PPT
Ch2 system structure
PPT
Ch1 introduction-to-os
PDF
Android i
PDF
Mongodb mock test_ii
PDF
Android mock test_iii
PDF
Android mock test_ii
PDF
Ajp notes-chapter-06
PDF
Ajp notes-chapter-05
PDF
Ajp notes-chapter-04
PDF
Ajp notes-chapter-03
Unit 1 android and it's tools quiz {mad cwipedia}
Scheduling
Chapter 4
Chapter 3
Chapter 2
Chapter 1
Chapter 5
Ch5 cpu-scheduling
Ch4 threads
Ch3 processes
Ch2 system structure
Ch1 introduction-to-os
Android i
Mongodb mock test_ii
Android mock test_iii
Android mock test_ii
Ajp notes-chapter-06
Ajp notes-chapter-05
Ajp notes-chapter-04
Ajp notes-chapter-03
Ad

Oopsprc1d