From 8b19aaea12a7ec0580e632462dcdba5f7823be2a Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Mon, 25 Feb 2019 21:48:20 -0600 Subject: E --- ee1301/wk2/coolHipExample.c | 14 ++++++++++++++ ee1301/wk2/coolHipExample.cpp | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 ee1301/wk2/coolHipExample.c delete mode 100644 ee1301/wk2/coolHipExample.cpp (limited to 'ee1301/wk2') diff --git a/ee1301/wk2/coolHipExample.c b/ee1301/wk2/coolHipExample.c new file mode 100644 index 0000000..e86f1b7 --- /dev/null +++ b/ee1301/wk2/coolHipExample.c @@ -0,0 +1,14 @@ +#include +#include +#include +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; +} \ No newline at end of file diff --git a/ee1301/wk2/coolHipExample.cpp b/ee1301/wk2/coolHipExample.cpp deleted file mode 100644 index e86f1b7..0000000 --- a/ee1301/wk2/coolHipExample.cpp +++ /dev/null @@ -1,14 +0,0 @@ -#include -#include -#include -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; -} \ No newline at end of file -- cgit v1.2.3