#include <stdio.h>
 
//TODO: define a function to evaluate a to the power of b without using predefined functions.
int power(int a, int b)
{
	int result = 1;
	
	for(int i = 0; i < b; i++)
	{
		result = result * a;
	}
	
	return result;
}
 
int main(void) {
	//TODO: scan two integer from user, a and b
	
	int m, n;
	printf("Please enter integer1: ");
	scanf("%d", &m);
	
	printf("Please enter integer2: ");
	scanf("%d", &n);
 
	//TODO: call the function you defined above and assign a variable to the result
	printf("m to the power of n is equal to: %d\n", power(m, n));
 
	//TODO: printout the result
 
	return 0;
}