Posts

Showing posts from January, 2016

Find min and max number in a given array

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication1 {     class Program     {         public static void Main()         {             int number; //number             float large, small;             int[] a = new int[50];             Console.WriteLine("Enter the size of Array");             number  = Int32.Parse( Console.ReadLine());                       Console.WriteLine("Enter the array elements");             for (int i = 0; i < number; i++)             {                 a[i] = Int32.Parse(Console.ReadLi...