In this article i am explaining about block statement.The block statement is used for write multiple segments of program in logical group.

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Block_Statement_Example

{ //Begin Statement
    class Program
    { // Begin Statement
        static void Main(string[] args)
        { //Begin Statement
            int n1, power;
            n1 = 5;
            power = n1 * n1;
            Console.WriteLine(power);
            Console.ReadLine();
        } // End Statement
    } // End Statement
} // End Statement

Leave a Reply

Your email address will not be published. Required fields are marked *