Data Type C# Tutorial

using System;  
  
class MainClass {     
  public static void Main() {     
    string str = "This is a test. $23"; 
    int i; 
 
    for(i=0; i < str.Length; i++) { 
      Console.Write(str[i] + " is"); 
      if(Char.IsPunctuation(str[i])) 
        Console.Write(" punctuation"); 
 
      Console.WriteLine(); 
    } 
  }
}
T is
h is
i is
s is
is
i is
s is
is
a is
is
t is
e is
s is
t is
. is punctuation
is
$ is
2 is
3 is