All pastes #196884 Raw Edit

Mine

public text v1 · immutable
·published 2006-10-10 23:11 UTC
rendered paste body
#include<iostream>
using namespace std;

double powerTo(double,int);

int main(){
	double num;
	int pwr;
	cout << "enter num: ";
	cin >> num;
	cout << "enter power: ";
	cin >> pwr;
	cout << "\n" << num << " raised to the power of " << pwr << " is: ";
	powerTo(num,pwr);

}
double powerTo(double num, int pwr)
{     
		for (int i=0; i >= pwr; i++)
		{      
			num = (num*num);      
		}    
		return num;   
}