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 default scripting language in asp?

0 Answers  


When is the Session_OnStart event fired? A. Upon every request from an application by a client for an .asp document. B. Upon the first request from an application by a client for any file in the application. C. Upon the first request for an .asp document from an application by a client. D. Upon the first request for the global.asa file, in which the event handler is located. E. Upon the first request for an. html or .asp document from an application by client

1 Answers  


Explain the difference between querystring collection and form collection?

0 Answers  


Define a scripting language?

0 Answers  


What is the difference between cshtml and aspx?

0 Answers  






What is the difference between asp and html? Or why asp is better than html?

0 Answers  


How add insert options in datagrid control in footer row.

0 Answers   PreludeSys,


What is the order of execution for an ASP application?

2 Answers  


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

1 Answers   Infosys, Syntel,


can we place Global.asa into "bin" directory instead of Root directory?

3 Answers   Satyam,


Define .asp file?

0 Answers  


Give the comment tags for the following?

0 Answers  


Categories