Last active
September 12, 2018 06:04
-
-
Save songzheng45/3eaa99e5f71723e11bf8f0eefa25b893 to your computer and use it in GitHub Desktop.
C# generate letters
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
using System.Text; | |
StringBuilder builder = new StringBuilder(); | |
// ASCII 中, 65表示A, 90表示Z | |
for(int i = 65; i<=90; i++) | |
{ | |
builder.Append((char)i); | |
} | |
// ASCII 中, 97表示a, 122表示z | |
for(int i = 97; i<=122; i++) | |
{ | |
builder.Append((char)i); | |
} | |
builder.ToString() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment