Skip to content

Instantly share code, notes, and snippets.

@echigoyaechizen
Created February 7, 2017 07:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save echigoyaechizen/fd82ae504b34431f1a94bf514a8f55e9 to your computer and use it in GitHub Desktop.
Save echigoyaechizen/fd82ae504b34431f1a94bf514a8f55e9 to your computer and use it in GitHub Desktop.
Public Class Class1
Public Shared Sub Main()
Do
Dim s As String = Console.ReadLine()
If s Is Nothing Then Exit Do
Console.WriteLine(DK(s))
Loop
End Sub
Public Shared Function DK(s As String) As String
DK = ""
For i As Int32 = 0 To Len(s) - 1
DK &= IIf(i = Len(s) \ 2, UCase(s(i)), s(i))
Next
End Function
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment