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 to connect asp with sql server.......? Write some code for connectivity between sql server and ASP...

2 Answers  


Is asp a language?

0 Answers  


We have recently bought Hart 475 communicator , when we try to use it on transmitter it shows error : Voltage detected on FF connectors and later show No device found , can any one give me and idea about how to solve it.

0 Answers   Globtech BD,


How can I break Search

0 Answers  


What is caching in asp?

0 Answers  






what are disadvantages of AJAX controls?

1 Answers   Marlabs,


How many Max Cookies can we create in Server? A. 10 B. 20 C. 30 D. 40

4 Answers   TCS,


what is abstact class in asp.net?

1 Answers  


Can be arrays resized by using the keyword redim?

0 Answers  


Which DLL file is needed to be registered for ASP?

3 Answers  


Resource Files: How to use the resource files, how to know which language to use?

0 Answers   TCS,


How do I print an aspx file?

0 Answers  


Categories