Introduction
In this article I explain how to separate each digit from specified number. For example: "5674" is presented in the from of "5 6 7 4"; in other words, I have separated each digit from the number.
Use the following procedure to split a number into digits.
Step 1
First of all you have to 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="digit_app.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:digit_app"
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="131*"/>
<RowDefinition Height="44*"/>
<RowDefinition Height="41*"/>
<RowDefinition Height="41*"/>
<RowDefinition Height="36*"/>
<RowDefinition Height="374*"/>
<RowDefinition Height="101*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="164*"/>
<ColumnDefinition Width="128*"/>
<ColumnDefinition Width="391*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Split Number into Digit " FontSize="20" FontWeight="ExtraBold" FontFamily="Arial" Grid.Column="1" Grid.Row="1" ></TextBlock>
<TextBlock Text="Enter Number:" FontSize="20" FontWeight="ExtraBold" FontFamily="Arial" Grid.Column="1" Grid.Row="2" ></TextBlock>


Join the conversation! Your thoughts help the community grow.