im trying to write a method called Power that takes two non-negative integer parameters and returns a value that is the first parameter raised to the power of the second (e.g. parameters 2, 3 will return 8, which is 2 x 2 x 2).
using System;
namespace HelloWorld
{
class Program
{
static void Main(string[] args)
{
int a = 2;
int b = 3;
int result = Power(a, b);
Console.WriteLine(result);
}
}
}

Suraj KumarRank #353 · 7.1K reputationPosted Dec 14, 2018, 10:23 PM EST
Suraj KumarRank #353 · 7.1K reputationPosted Dec 14, 2018, 9:43 PM EST