Given a string determine its alphabetically maximum substring
Answers
Answered by
0
Answer:
Explanation:
Note-'The following code is of python programming language'
str=input('Enter String=')
max=str[0]
for i in str:
if i>max:
max=i
print('Alphabetically max. substring=%s',max)
Similar questions