Tech Study

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.

using System;
using System.Linq;
class Program
{
    static void Main()
    {
        int[] Arr = { 20, -10, -30, 0, 15, 10, 30 };
        Console.WriteLine("Maximum Element : " + Arr.Max());
        Console.WriteLine("Minimum Element : " + Arr.Min());
        Console.Read();
    }
}

Result

Write C# Program to Find Minimum and Maximum of Numbers
Write C# Program to Find Minimum and Maximum of Numbers

TaggedWrite C# Program to Find Minimum and Maximum of Numbers

Python Examples

Introduction: Python Examples are the basic programming concepts of python like python syntax,python data types,,python operators,python if else,python comments etc.. …

Read more

C String Functions

C String Functions perform certain operations, It provides many useful string functions which can come into action. The <string.h> header …

Read more