sandra0309

vezba7

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