You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
413 B
C#
19 lines
413 B
C#
5 years ago
|
/*
|
||
|
* C# Program to Find Minimum and Maximum of Numbers
|
||
|
*/
|
||
|
using System;
|
||
|
using System.Linq;
|
||
|
class Program
|
||
|
{
|
||
|
static void Main()
|
||
|
{
|
||
|
int[] array1 = { 10, -10, -20, 0,15,20,30 };
|
||
|
Console.WriteLine("Maximum Element : " +array1.Max());
|
||
|
Console.WriteLine("Minimum Element : " +array1.Min());
|
||
|
Console.Read();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/*
|
||
|
Maximum Element : 30
|
||
|
Minimum Element : -20
|