Computer Science, asked by karmridula73, 5 months ago

WAP to take 10 names and print only those names whose 3rd and 3rd last characters are same.​

Answers

Answered by chintamanbhamre000
0

Answer:

Program to check if first and the last characters of string are equal

We are given a string, we need check whether the first and last characters of the string str are equal or not. Case sensitivity is to be considered.

Examples :

Input : university

Output : Not Equal

Explanation: In the string "university", the first character is 'u'

and the last character is 'y', as they are not equal, "Not Equal" is the output.

Input : racecar

Output : Equal

Explanation: In the string "racecar", the first character is 'r'

and the last character is 'r', as they are

Similar questions