0

can somebody please explain this code ? im not understanding fully how the code works ...

static int Pow(int x, int y=2) { int result = 1; for (int i = 0; i < y; i++) { result *= x; } return result; } static void Main(string[] args) { Console.WriteLine(Pow(6)); Console.WriteLine(Pow(3, 4)); }

6th Jul 2020, 11:37 PM
Riku Haku
Riku Haku - avatar
1 Odpowiedź