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 the difference between post and get method.

0 Answers  


What are Scripting Objects?

1 Answers  


Is asp a programming language?

0 Answers  


Define application object?

0 Answers  


what is diff c#and vb.net what is .net framework 3.5 what is webservice with expmles

0 Answers  






What is caching in asp?

0 Answers  


What are Constants? How will you declare a constant?

1 Answers  


Define a scripting language?

0 Answers  


How do you initialize a two-dimensional array that you don't know the dimensions of?

0 Answers  


why we use data bind in asp.net

1 Answers  


Name at least two methods of response object other than Transfer.

3 Answers  


How add insert options in datagrid control in footer row.

0 Answers   PreludeSys,


Categories