Palindromic String | Basics of Input/Output
Problem Statement : You have been given a String S . You need to find and print whether this string is a palindrome or not. If yes, print "YES" (without quotes), else print "NO" (without quotes). Problem Link : https://www.hackerearth.com/practice/basic-programming/input-output/basics-of-input-output/practice-problems/algorithm/palindrome-check-2/ Input Format : The first and only line of input contains the String S . The String shall consist of lowercase English alphabets only. Output Format : Print the required answer on a single line. Constraints : 1 ≤ | S | ≤ 100 String S consists of lowercase English Alphabets only. Solution : //Code here #include <iostream> using namespace std; int main() { char str[100]; cin>>str; // input string int i,j; // looping variables int len;...