Advertisement
nahidjamalli

Lesson #1

Feb 14th, 2020
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.40 KB | None | 0 0
  1. namespace MyNamespace
  2. {
  3.     class MyClass
  4.     {
  5.         static void Main()
  6.         {
  7.             // String VS Char
  8.             string str = "";
  9.  
  10.             // Can not set ''
  11.             // Only can set single character
  12.             char ch = ' ';
  13.  
  14.             // Print on Console
  15.             // H
  16.             // A
  17.             // !
  18.             // ...
  19.  
  20.             //for (int i = 0; i < str.Length; i++)
  21.             //{
  22.             //  System.Console.WriteLine(str[i]);
  23.             //}
  24.  
  25.             System.Console.WriteLine(ch);
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement