diff --git a/introduction/Pavit/issue#42.cpp b/introduction/Pavit/issue#42.cpp new file mode 100644 index 0000000..d24c666 --- /dev/null +++ b/introduction/Pavit/issue#42.cpp @@ -0,0 +1,28 @@ +#include +#include +#include +using namespace std; + +int main() +{ + char st[50]; + int l,i,k=0,f=1; + cout<<"Program to check for palindrome for an entered string in C++ "<=0;i--) +{ + if(st[i]!=st[k]) + { + f=0; + break; + } + k++; +} +if(f==1) + cout<<"It is a palindrome string"<