diff --git a/A power B.txt b/A power B.txt new file mode 100644 index 0000000..004d47f --- /dev/null +++ b/A power B.txt @@ -0,0 +1,7 @@ +int power(int a, int b) { + int x =1; + while(b--){ + x*=a; + } + return x; +} \ No newline at end of file