In this article I describe how to determine if a number is a Perfect Number. But first let us understand what a Perfect Number is.
Perfect Number
A number is called a Perfect Number when the sum of its perfect divisors (except itself) are equal to a given number. In other words, a Perfect Number is a number that equals the sum of its factors.
Example: Number 6 = 1+2+3.
Use the following procedure to create a Perfect Number app in Windows Store.
Step 1
First of all you have to create a New Window Store Application.
- Open Visual Studio 2012
- "File" -> "New" -> "Project..."
- Choose Template: "Visual C#" -> "Window Store app"
- "Blank App (XAML)", then rename the application

Step 2
Write XAML code for "Mainpage.Xaml" that is available in Solution Explorer; see:
<Page
x:Class="armstrong_app.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:armstrong_app"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="Blue">
<Grid.RowDefinitions>
<RowDefinition Height="38*"/>
<RowDefinition Height="23*"/>
<RowDefinition Height="31*"/>
<RowDefinition Height="32*"/>
<RowDefinition Height="35*"/>
<RowDefinition Height="609*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="161*"/>
<ColumnDefinition Width="303*"/>
<ColumnDefinition Width="902*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="Check Number is Perfect Number or not" FontFamily="Arial" FontSize="14" FontWeight="ExtraBold" Foreground="Red" Grid.Column="1" Grid.Row="1" Grid.ColumnSpan="2"></TextBlock>
<TextBlock Text="Enter Number:" FontFamily="Arial" FontSize="15" FontWeight="ExtraBold" Foreground="Red" Grid.Column="1" Grid.Row="2"></TextBlock>



Join the conversation! Your thoughts help the community grow.