From 5ad557adb83fdb31dc3050f3c1479411fa6b2ca2 Mon Sep 17 00:00:00 2001 From: Seema Kumari Patel Date: Thu, 2 Oct 2025 12:27:05 +0530 Subject: [PATCH] cpp file - to find is a string is palindrome - under cpp folder --- CPP/strings/palindorme.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 CPP/strings/palindorme.cpp diff --git a/CPP/strings/palindorme.cpp b/CPP/strings/palindorme.cpp new file mode 100644 index 0000000..6563510 --- /dev/null +++ b/CPP/strings/palindorme.cpp @@ -0,0 +1,33 @@ +//author : seema Kumari patel +//date : 02-10-2025 +//purpose: To check whether the given string is palindrome or not + + +#include + +using namespace std; + +void main() +{ + string s; + cout<<"Enter the string : "; + cin>>s; + int n=s.length(); + int flag=0; + for(int i=0;i