/* A program that raises a to the power of b */

#include <stdio.h>

int main()
{
  int a,  b, i, power;

  printf("Enter 2 numbers: ");
  scanf("%d%d", &a, &b);
	
  i = 1;
  power = 1;
  while (i <= b) {
    power = power * a;
    i++;
  }
  printf("%d to the power of %d is %d\n", a, b, power);
  return 0;
}
