aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk2/coolHipExample.c
blob: e86f1b758bd4e32297d166b43faea493c0f46cc3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;

int main () {
  int x=2,n=0;
  int og=x;
  for (int i=n; i>1; i--){
    x*=og;
  }
  
  cout << og << "^" << n << "=" << x << endl;
}