#include <iostream>
#include <cmath>

float mypow(float value, int pow)
{
	float temp = value;
	for (int i = 0; i < pow - 1; ++i)
	    temp *= value;
	    
	for (int i = 0; i > pow - 1; --i)
	    temp /= value;
	    
	return temp;
}


int main() 
{
	std::cout<<pow(10, -3)<<"\n";
	std::cout<<mypow(10, -3)<<"\n";
	return 0;
}