Code :

using System;
using System.Data;
using System.Linq;
using System.Collections.Generic;

//csc Simple_Linq1.cs
namespace ConsoleApplication1
{
class MainClass
{

public static void Main(string[] args)
{

string[] words = { "March", "April", "May", "June", "January", "February", "October", "December" };
// LINQ Query for short words and long words
var shortWords = from word in words where word.Length <= 5 select word;
var LongWords = from word in words where word.Length >= 5 select word;

// Print each word out with foreach loop/ LINQ query
Console.WriteLine(" Short Words : ");
foreach (var word in shortWords)
{
Console.WriteLine(" : " + word.ToString());
}
Console.WriteLine("Long Words ");
foreach (var word in LongWords)
{
//Console.WriteLine(word);
Console.WriteLine(" " + word.ToString());
}
//
Console.ReadLine();

}
}
}