Introduction
We all know that an array is a collection of homogenous data types. In other words, one array can contain several elements depending on their defined size or you can assign a value at the time of declaration. Since an array is a collection of several elements of the same data type we can perform various types of operations on the array, like search for the largest, smallest, second highest or second smallest element within an array.
Here in this article I will find the largest element from an array.
Use the following procedure to create it.
Step 1
First of all you must create a new Windows Store Application.
Open Visual Studio 2012
"File" -> "New" -> "Project..."
Choose "Template" -> "Visual C#" -> "Window Store app"
Choose "Blank App (XAML)" then rename the application

Step 2
Write the following XAML code in "Mainpage.Xaml" (that is available in Solution Explorer):
<Page
x:Class="find_largest_no_in_array.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:find_largest_no_in_array"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="Red">
<Grid.RowDefinitions>
<RowDefinition Height="110*"/>
<RowDefinition Height="59*"/>
<RowDefinition Height="40*"/>
<RowDefinition Height="559*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="167*"/>
<ColumnDefinition Width="156*"/>
<ColumnDefinition Width="360*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Array content is :" FontSize="20" FontFamily="Arial" FontWeight="ExtraBold" Foreground="White" Grid.Column="1" Grid.Row="1" TextAlignment="Left" Margin="0,0,375,12" Grid.ColumnSpan="2"/>

Join the conversation! Your thoughts help the community grow.