using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main() {
List names = new List();
names.Add("Ram");
names.Add("Rose");
names.Add("Abs");
names.Add("Edward");
names.Add("Sita");
names.Sort();
foreach (string s in names)
Console.WriteLine(s);
Console.ReadLine();
}
}
}
Here is the output of the C# Program:
Abs Edward Ram Rose Sita
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace ConsoleApplication1 {
class Program {
static void Main() {
List
0 comments:
Post a Comment