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

Name the data types which does the rangevalidator control support?

0 Answers  


What is the Default ScriptTimeOut for Server Object? A. 20 Sec B. 30 Sec C. 60 Sec D. 90 Sec

1 Answers  


How can I break Search

0 Answers  


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

0 Answers  


How to handle error in asp

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,


What is http header?

0 Answers  


How does asp differ from html?

0 Answers  


What is a service application?

0 Answers  


by puting attendance to students if he absent tat should intimate to his fathers mobile automatically anybody having code send to me

0 Answers   Satyam,


In how many ways you can track the Session?

1 Answers  


why and how static variable retain their value after postback form ?

0 Answers  


Categories