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



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

Answer / 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

More ASP Interview Questions

How long is a SessionID guaranteed to be unique? A. It is unique for the web server, whether it is restarted or not. B. Only until the web server is restarted. C. It is like a GUID in that it is for any web server at any time. D. Only until the session expires, then it can be reissued to another client. E. It is unique per client. A client cannot have two sessions with the same SessionID

1 Answers  


What is the function of Buffer in Response Object?

1 Answers  


What is asp format?

0 Answers  


how can i connect to ms-access database, with ASP??

0 Answers  


Which is the default scripting language of asp in server-side?

0 Answers  






What is the common language specification (cls)?

0 Answers  


what is execute dataset for sp

0 Answers  


What's the purpose of using BUFFER property?

2 Answers  


Hi, i am looking for join learn real time project on dotnet please tell me which is the best institute now i am staying in a ameerpet. thank u for advance.

0 Answers  


Speaking of boolean data types, whats different between c# and /c++?

0 Answers  


How do I open an asp file?

0 Answers  


Plz give me the code for binding the dropdownlists with Country,State,City And Each will represent after selecting upper dropdownlist

0 Answers   TCS,


Categories