Wednesday, January 22, 2014

ConsoleExample.cs


using System;
class ConsoleExample
{      
  static void Main()       
  {          
          Console.Write("Dear Friend, ");
          Console.WriteLine("Welcome to C-Sharp Programming");       
  }
 }


// Console.Write() displays the output and cursor stays in the same line
// Console.WriteLine() displays the output and cursor moves to the next line
// This is something similar to "\n" is C language

No comments:

Post a Comment