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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

What is asp language?

477


which is the bet long term & basic to advanced available course for asp.net in hydrabad plz reply me t my email address also thanking you sm.chishty@gmail.com

1338


how can we create a webpage in .Net

1776


Explain how do you box a primitive data type variable?

486


Define a cookies collection?

510






What are server variables collection?

512


What is the maximum size of an array in asp?

494


Define garbage collection?

524


Name the asp objects?

479


Define session object?

509


Why do we use asp?

490


How do I open an asp file in excel?

523


Explain the post & get method?

529


What does asp stand for?

527


What is aspx used for?

503