Implement a Program using Where Clause:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace LinqEx
{
class Program
{
static void Main(string[] args)
{
int[] numbers = new int[] { 5, 4, 3, 1, 10, 14, 50, 25, 35 };
Console.WriteLine("Implement
a program to display numbers greater than 10 Using LINQ:");
var mnum = from q in numbers where q>10 select
q;
foreach (var x in mnum)
{
Console.WriteLine(x);
}
Console.ReadLine();
}
}
}
output:

2 comments:
I have problem with Oledb Query, while Uploading Excel Sheet to Sql server it is throwing error:"
Error: String was not recognized as a valid DateTime.Couldn't store in DOB Column. Expected type is DateTime."
i tried
Great article! Very helpful for readers looking for clear insights. For those interested in skill development, check out best training institute in Chennai offering quality courses. Helpful information about best guest posting sites.
Post a Comment