BestPromptFinderBelow is an instruction that describes a task. Write a response that appropriately completes the request. ### Instruction: Convert a given Python program to a C# program. ### Input: def power(x, y): if y == 0: return 1 else: return x * power(x, y - 1) ### Output: public int Power(int x, int y) { if (y == 0) { return 1; } else { return x * Power(x, y - 1); } }
Find similar in the app →