text: #include <stdio.h>
  #include <math.h>
  int potega(int,unsigned int);
  double potega(double,unsigned int);
  unsigned int potega(unsigned int,unsigned int );
  int main()
  {
      int n, m;
  
      printf("Podaj dwie liczby:\n");
      printf("n = ");
      scanf("%i",&n);
  
      printf("m = ");
      scanf("%i",&m);
  
      printf("%i^%i = %i\n",n,m,potega(n,m));
  
      return 0;
  }
  int potega(int n,unsigned int m)
  {
  	int i,p=1;
      if(n==0)
      {
          return 0;
      }
      else
      {
          for(i=1;i<=m;i++)
          {
          	p*=n;
  		}
  		return p;
      }
  }
  double potega(double n,unsigned int m)
  {
  	int i,p=1;
      if(n==0)
      {
          return 0;
      }
      else
      {
          for(i=1;i<=m;i++)
          {
          	p*=n;
  		}
  		return p;
      }
  }
  unsigned int potega(unsigned int n,unsigned int m)
  {
  	int i,p=1;
      if(n==0)
      {
          return 0;
      }
      else
      {
          for(i=1;i<=m;i++)
          {
          	p*=n;
  		}
  		return p;
      }
  }
  