Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static int Power(int base, int index) {
- int result = base;
- for (int i = 0; i < index; i++) {
- result *= base;
- }
- return result;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement