Write a program to accept a string from the user. Convert it in its uppercase and check whether
it is a “Magic String “ or not.
Magic String : A string which has two consecutive letters.
Sample Input : Abhijit
Sample Output : ABHIJIT
“It is a Magic String “[Reason : AB, HI, IJ are consecutive letters]
Answers
Answered by
5
Explanation:
It is a Magic String “[Reason : AB, HI, IJ are consecutive letters
Similar questions