using System; class MainClass { public static void Main() { foreach (string s in Environment.GetLogicalDrives()) { Console.WriteLine("Logical drive : " + s); } } }