#include using namespace std; unsigned int power (unsigned int, unsigned int); int main() { unsigned a, b, c; unsigned i; for (i=1; i<= 64; i++) { a = power(2, i); cout << "2 to the " << i << "th power is " << a << endl; } return 0; } unsigned int power (unsigned int base, unsigned int exponent) { unsigned int i = 1; unsigned product = 1; while (i <= exponent) { product = product * base; i++; } return product; }