Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<math.h>
- void getA(int x,int y);
- int main()
- {
- int a,b;
- scanf("%d",&a);
- scanf("%d",&b);
- getA(a,b);
- return 0;
- }
- void getA(int x,int y)
- {
- int i;
- for(i=1;i<y;i++){
- //x=x*x;
- x*=x;
- }
- printf("result = %d",x);
- }
Add Comment
Please, Sign In to add comment