input = "bhojaraju bhojaraju"
charCounter = 1
charCounter = 1
For i = 1 To len(input) Step 1
char = Mid(input,i,1)
If char <> " " Then
If charCounter mod 2 = 0 Then
outPut = output & Ucase(char)
Else
outPut = output & lcase(char)
End If
charCounter = charCounter + 1
Else
output = output & char
End If
Next
msgbox output
No comments:
Post a Comment
Note: only a member of this blog may post a comment.