1)Declare array with five elements
a[]={8,4,6,2,1,10}
Print minimum and maximum no from array.

Answer Posted / prabhanshu srivastava

int [] a= new int[]{8,4,6,2,1,10};
Console.WriteLine(a.Max());
Console.WriteLine(a.Min());

NOTE: CODES ARE IN C#.


Mail id: developerprabhu@gmail.com

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What type of code is found in a code-behind class?

482


Can any body send me Some Interview Questions of ASP.Net 2.0 or Later to my mail id that is gauravscott@gmail.com

1388


how to implemet online examination in asp.net

1575


Name the asp objects?

488


Explain the tasks performed by <> tags?

533






What is http header?

509


Define a filesystemobject object?

544


Why asp is called active server?

551


What is the full name of asp in vb net?

505


What are the attributes of the tags?

509


How do I open aspx file on mac?

566


Define global.asa file?

519


Can I use com objects from a .net framework program?

497


Where we get good training and LABS facility In C#.net courses in Hyderabad, I completed the classes in Peers even though im sure in good practice to get right position in jobs please help me who no well in this field?

1612


Explain the difference between the value-type variables and reference-type variables in terms of garbage collection?

519