Professional Documents
Culture Documents
*Title: power.cpp
*Abstract: C++ program that computes 2 to the nth power
*Author: William Barajas
*ID: 1010
*Date: 5/8/2019
*/
#include <iostream>
using namespace std;
int function(int n)
{
if(n == 0)
{
return 1;
}
else
{
return (2 * function(n-1));
}
}
int main()
{
int num;
return 0;
}