Deepak Gupta

Deepak Gupta

  • NA
  • 15
  • 19.5k

generate sequence letters

May 6 2009 10:07 AM
I want to generate the sequence of letter like A,B,C,D,E.....Z, AA, AB, AC.... Here is my code: char Letter = Char.Parse("A"); int Count = 50; for (int i = 0; i < Count; i++) { Response.write(Letter); Letter++; } It works fine for the letters A to Z but after that it shows the symbols. Can someone please edit it or give me any idea how to get the sequence after Z? Thanks!

Answers (3)