aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk2/hw2_directory/strap012_HW2A.cpp
diff options
context:
space:
mode:
authorRossTheRoss <mstrapp@protonmail.com>2020-01-30 16:55:04 -0600
committerRossTheRoss <mstrapp@protonmail.com>2020-01-30 16:55:04 -0600
commit175721a63b426355274fa9e8063f762020ab8362 (patch)
treecf2c1b33233d660c9f50de5e659b9343bb264984 /ee1301/wk2/hw2_directory/strap012_HW2A.cpp
parentMake Python thing in Python (diff)
downloadhomework-175721a63b426355274fa9e8063f762020ab8362.tar
homework-175721a63b426355274fa9e8063f762020ab8362.tar.gz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.bz2
homework-175721a63b426355274fa9e8063f762020ab8362.tar.lz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.xz
homework-175721a63b426355274fa9e8063f762020ab8362.tar.zst
homework-175721a63b426355274fa9e8063f762020ab8362.zip
R E A R R A N G E
Diffstat (limited to 'ee1301/wk2/hw2_directory/strap012_HW2A.cpp')
-rw-r--r--ee1301/wk2/hw2_directory/strap012_HW2A.cpp49
1 files changed, 0 insertions, 49 deletions
diff --git a/ee1301/wk2/hw2_directory/strap012_HW2A.cpp b/ee1301/wk2/hw2_directory/strap012_HW2A.cpp
deleted file mode 100644
index 2877801..0000000
--- a/ee1301/wk2/hw2_directory/strap012_HW2A.cpp
+++ /dev/null
@@ -1,49 +0,0 @@
-/*
-20 Feb 2019
-Matthew Strapp
-5449340
-EE1301
-Spring 2019
-Homework 2A
-Useless Counter
-*/
-
-#include <iostream>
-using namespace std;
-int main () {
- int countOG, i, j;
-
-do {
-
- do {
- cout << "Enter an integer from -50 to 50: ";
- cin >> countOG;
- } while (countOG > 50 || countOG < -50);
-
- int count=countOG; //Store original integer for comparison to break loop
-
- if (countOG < 0){
- count*=-1;
- for (i=count; i>0; i--) {
- for (j=count; j>0; j--) {
- cout << count;
- }
- count--;
- cout << endl;
- }
- }
-
- if (countOG > 0) {
- for (count=1; count<=countOG; count++) {
- for (i=0; i<count; i++) {
- cout << count;
- }
- cout << endl;
- }
- }
-
-} while (countOG != 0);
-
- cout << "Goodbye." << endl;
- return 0;
-} \ No newline at end of file