using System;
using System.Windows.Forms;
namespace csphtp1.ch05.fig05_05
{
/// <summary>
/// Summary description for Class1.
/// </summary>
class Sum
{
static void Main( string[] args )
{
//
// TODO: Add code to start application here
//
int sum = 0;
for ( int number = 2; number <= 100; number += 2 )
sum += number;
MessageBox.Show( "The sum is " + sum, "Sum Even Integers from 2 to 100", MessageBoxButtons.OK,
MessageBoxIcon.Information ); //使用此方法,一定要引用System.Windows.Forms
} // end of method Main
} // end of class Sum
} // end of namespace csphtp1.ch05.fig05_05