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