ibm Programming and Technical Programming Program

Wap to find a desired char in the string and print its ASCII value...Be perfect with String methods

Read Solution (Total 15)

ibm Other Question

WAP to convert the alternate characters of the string to upper case . The first letter of the string has to be Capital.
I/P:We are the worlD
O/P: We ArE tHe WoRlD
Input:Hello world,l
Output:9
Input :Hello world,m
Output:-1
character 'l' is repeated 3 times we have to return the index value of last 'l'
character 'm' is not there so return -1