/* priklad pr5_2.c   celociselna mocnina pomocou while */

int imoc(int x, int n);
void main(void)
{
  printf("Mocnina (%d)%d = %d\n",3,4,imoc(3,4));
}

int imoc(int x, int n)
{
  int y=1;
  while (n--) y *=x;
  return (y);
}