using System;
namespace MyCompiler {
class Program {
public static void Main(string[] args) {
Console.WriteLine("digite um valor para B e para N, sendo N maior do que 1 e int e B maior ou igual a 2 e int: ");
int n = Convert.ToInt32(Console.ReadLine());
int b = Convert.ToInt32(Console.ReadLine());
if(b >= 2 && n > 1){
Console.WriteLine("b^n = " + Math.Pow(n, b));
}
else
{
Console.WriteLine("Valores invalidos");
}
}
}
}
To embed this project on your website, copy the following code and paste it into your website's HTML: