mirror of
https://github.com/github/codeql.git
synced 2026-02-22 09:53:41 +01:00
20 lines
378 B
C#
20 lines
378 B
C#
public static void PrintAllCharInts(string s){
|
|
if (s != null)
|
|
{
|
|
foreach (char c in s)
|
|
{
|
|
Console.WriteLine(c + "=" + (int)c);
|
|
}
|
|
}
|
|
}
|
|
public static void Main(string[] args)
|
|
{
|
|
string[] strings = new string[5];
|
|
if (strings != null)
|
|
{
|
|
foreach(string s in strings){
|
|
PrintAllCharInts(s);
|
|
}
|
|
}
|
|
}
|