Friday, 3 August 2012

Using Math.Pow()

Use Math.Pow() method


Use for power like if u wanna value of 2 to the power of 4


using System;
using System.Collections.Generic;
using System.Text;

    class Program
    {
        public static void Main()
        {
              Console.WriteLine(Math.Pow(2, 4));   //means 2 to the power 4 equal 32
        }
 
}

No comments:

Post a Comment