From d8d0c36dfa1530ce8efcba24d796dfcea32a81fb Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Tue, 19 Feb 2019 21:44:42 -0600 Subject: AHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH --- ee1301/wk2/hw2_directory/strap012_2A.cpp | 51 -------------------------------- 1 file changed, 51 deletions(-) delete mode 100644 ee1301/wk2/hw2_directory/strap012_2A.cpp (limited to 'ee1301/wk2/hw2_directory/strap012_2A.cpp') diff --git a/ee1301/wk2/hw2_directory/strap012_2A.cpp b/ee1301/wk2/hw2_directory/strap012_2A.cpp deleted file mode 100644 index 3129241..0000000 --- a/ee1301/wk2/hw2_directory/strap012_2A.cpp +++ /dev/null @@ -1,51 +0,0 @@ -/* -Date: 20 Feb 2019 -Name: Matthew Strapp -Student ID number: 5449340 -Course number: EE1301 -Term: Spring 2019 -Lab/assignment number: Homework 2A -Short Program Description: Useless Counter -*/ - -#include -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) { - count=1; //Sets initial printing of countOG to 1 - for (i=1; i<=countOG; i++) { - for (j=0; j