C# program to print the numbers greater than 786 in an integer array using LINQ
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Program:
The source code to print numbers greater than 786 in an integer array using LINQ in C# is given below. The given program is compiled and executed successfully on Microsoft Visual Studio.
Output:
Explanation:
In the above program, we created a class Number that contains the Main() method.
In the Main() method we created an integer array that contains multiple numbers.
In the above code, we select numbers greater than 786 from integer array.
In the above code, we printed the numbers selected from the LINQ query on the console screen.