Advertisement
2629881

Untitled

Jul 22nd, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.63 KB | None | 0 0
  1. static void Main(string[] args)
  2.         {
  3.             string inputString = Console.ReadLine();
  4.             StringBuilder lowerCharSB = new StringBuilder();
  5.             StringBuilder outputIntSB = new StringBuilder();
  6.  
  7.             foreach (char c in inputString)
  8.             {
  9.                 lowerCharSB.Append(char.ToLower(c));
  10.  
  11.             }
  12.             for (int i = 0; i < lowerCharSB.Length; i++)
  13.             {
  14.                 int charCode = lowerCharSB[i];
  15.                 outputIntSB.Append(charCode+", ");
  16.             }
  17.            
  18.             Console.WriteLine(outputIntSB);
  19.             Console.ReadKey();
  20.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement