OKIEWARDOYO

C#.NET No.5-1

Nov 30th, 2012
1,055
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.46 KB | None | 0 0
  1. //Program.cs
  2. using System;
  3. public class Program
  4. {
  5.    public static void Main(string[] args)
  6.    {
  7.        // The Length property is used to obtain the length of the array.
  8.        // Notice that Length is a read-only property:
  9.  
  10.        Console.WriteLine("Number of command line parameters = {0}",
  11.           args.Length);
  12.        for(int i = 0; i < args.Length; i++)
  13.        {
  14.            Console.WriteLine("Arg[{0}] = [{1}]", i, args[i]);
  15.        }
  16.    }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment