Write C# Program to Find Minimum and Maximum of Numbers


Introduction

I have used Visual Studio 2012 for debugging purpose. But you can use any version of visul studio as per your availability.


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

  1. using System;
  2. using System.Linq;
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int[] Arr = { 20, -10, -30, 0, 15, 10, 30 };
  8. Console.WriteLine("Maximum Element : " + Arr.Max());
  9. Console.WriteLine("Minimum Element : " + Arr.Min());
  10. Console.Read();
  11. }
  12. }

Result

C# language techstudy

     





Related Topics




Popular Posts