sandra0309

vezba8

Dec 7th, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.17 KB | None | 0 0
  1. #include<stdio.h>
  2. //stepen
  3. int main ()
  4. { int i,x,n,stepen=1;
  5.  scanf("%d%d",&x,&n);
  6.  for (i=1;i<=n;i++)
  7.  {
  8.   stepen=stepen*x;
  9.  }
  10.  printf("%d",stepen);
  11.  
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment