Created
February 7, 2017 07:26
-
-
Save echigoyaechizen/fd82ae504b34431f1a94bf514a8f55e9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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