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

What is asp what can asp do for you?

0 Answers  


What is n-tier system?

0 Answers  


How to add Textboxes Programmatically in each and every cell of Gridview along with the Excel data in the Gridvew.I mean when i get Excel data in Gridview i need to display Data and Textboxes for each and every cell of Gridview. Got it. Iam new to this concept plz help me. Thanks in Advance.

0 Answers  


Explain life cycle of asp page.

0 Answers  


Why we need stored procedures?

0 Answers  






what is STLC in Testing

0 Answers  


How to refresh an asp page on a single click of a button?

0 Answers  


How do in-process communication work in the common language runtime?

0 Answers  


in how many sttes asp.net page available?

1 Answers  


Is asp a programming language?

0 Answers  


Which choice is NOT a property of Dictionary Object? A. Key() B. CompareMode C. Item () D. Exists () E. Count

1 Answers  


Name the command to display characters to the html page?

0 Answers  


Categories