WAP to take 10 names and print only those names which has H at the third place .
Answers
Answered by
0
Answer:
Explanation:
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