C# Program to Print the Numbers Greater Than 786 in an Integer Array using LINQ Last Updated : 19 Dec, 2021 Comments Improve Suggest changes Like Article Like Report Language-Integrated Query (LINQ) is a uniform query syntax in C# to retrieve data from different sources. It eliminates the mismatch between programming languages and databases and also provides a single querying interface for different types of data sources. In this article, we will learn how to display numbers greater than 786 in an array using LINQ. Example: Input: 1, 234, 456, 678, 789, 987, 654, 345 Output: 789, 987 Input: 3, 134, 856, 578, 789, 187, 854, 945 Output: 856, 854, 945 Approach: To print the numbers greater than 786 in an integer array we use the following approach: Store integer(input) in an array.By using the LINQ query we will store the numbers greater than 786 in an iterator.Now the iterator is iterated and the integers are printed. Example: C# // C# program to display the numbers greater than 786 in // an integer array using LINQ using System; using System.Linq; class GFG{ static void Main() { // Input int[] Arr = { 1, 234, 456, 678, 789, 987, 654, 345 }; // From the array the numbers greater than 786 are // stored in to the iterator numbers. var numbers = from number in Arr where number > 786 select number; // Display the output Console.WriteLine("The numbers larger than 786 are :"); foreach(int n in numbers) { Console.Write(n + " "); } } } Output: The numbers larger than 786 are : 789 987 Comment More infoAdvertise with us Next Article C# Program to Print the Numbers Greater Than 786 in an Integer Array using LINQ P pulamolusaimohan Follow Improve Article Tags : C# CSharp LINQ CSharp-programs Similar Reads C# Program to Print Only Those Numbers Whose Value is Less Than Average of all Elements in an Integer Array using LINQ Language-Integrated Query (LINQ) is a uniform query syntax in C# to retrieve data from different sources. It eliminates the mismatch between programming languages and databases and also provides a single querying interface for different types of data sources. In this article, we will learn how to pr 2 min read C# Program to Print the Employees Whose ID is Greater Than 101 Using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 3 min read C# Program to Find Greatest Numbers in an Array using WHERE Clause LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 2 min read C# Program to Print the Employees Whose Name Contains Less Than 4 Characters Using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 2 min read C# Program to Generate Numbers that are Multiples of 5 Using the LINQ Parallel Query LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 2 min read C# Program to Print the Employees Whose Name Started with 'S' and Age is Greater than 23 Using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 3 min read C# Program to Generate Odd Numbers in Parallel using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 2 min read C# Program for Count Inversions in an array | Set 1 (Using Merge Sort) Inversion Count for an array indicates - how far (or close) the array is from being sorted. If the array is already sorted, then the inversion count is 0, but if the array is sorted in the reverse order, the inversion count is the maximum. Formally speaking, two elements a[i] and a[j] form an invers 6 min read C# Program to Print the Employees Whose Salary is Between 6000 and 8000 Using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 3 min read C# Program to Print Employees Whose Salary is Greater than Average of all Employees Salaries Using LINQ LINQ is known as Language Integrated Query and it is introduced in .NET 3.5. It gives the ability to .NET languages to generate queries to retrieve data from the data source. It removes the mismatch between programming languages and databases and the syntax used to create a query is the same no matt 3 min read Like