# Exponent Method Using C#

In this blog, I will describe the functionality of Exponent Methods using C#.

Introduction

In this blog, we are going to see the calculation power of Exponent Method in C# programming language.

We're going to use that the same basic console programs.

What is the Exponent Method?

An exponent refers to the number of times a number is multiplied by itself.

For example, 2 to the 3rd means: 2 x 2 x 2 = 8. 2 to the power 3 is not the same as 2 x 3 = 6. Remember that a number raised to the power of 1 is itself.

Let's start!
• These programs have all been successfully executed in Visual Studio.
• The following each program has two outputs.
Calculate Power Exponent value
1. using System;
2. class Expo {
3.     static void Main() {
4.         double m, n;
5.         Console.WriteLine("Enter the Number : ");
7.         Console.WriteLine("Give the Exponent : ");
9.         double value1 = Math.Pow(m, n);
10.         Console.WriteLine("Result : {0}", value1);
12.     }
13. }

Addition of Exponent of the same base
1. using System;
3.     static void Main() {
4.         Console.WriteLine("Enter the Base Value : ");
6.         Console.WriteLine("Give the First Exponent :");
8.         Console.WriteLine("Give the Second Exponent :");
11.         add = exp1 + exp2;
14.     }
15. }

Subtraction of Exponent of the same base
1. using System;
2. class ExpoSub {
3.     static void Main() {
4.         Console.WriteLine("Enter the Base Value : ");
6.         Console.WriteLine("Give the First Exponent :");
8.         Console.WriteLine("Give the Second Exponent :");
10.         double sub;
11.         sub = exp1 - exp2;
12.         Console.WriteLine("Result is : {0}^{1} : {2}", num, sub, Math.Pow(num, sub));
14.     }
15. }

Multiplication of Exponent of the same base
1. using System;
2. class ExpoMulti {
3.     static void Main() {
4.         Console.WriteLine("Enter the Base Value : ");
6.         Console.WriteLine("Give the First Exponent :");
8.         Console.WriteLine("Give the Second Exponent :");
10.         double mul;
11.         mul = exp1 * exp2;
12.         Console.WriteLine("Result is : {0}^{1} : {2}", num, mul, Math.Pow(num, mul));
14.     }
15. }

Division of Exponent of the same base
1. using System;
2. class ExpoDivi {
3.     static void Main() {
4.         Console.WriteLine("Enter the Base Value : ");
6.         Console.WriteLine("Give the First Exponent :");