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

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999

  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


Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.