From e3f772edd868d3c4995856904d24eac28b550bd9 Mon Sep 17 00:00:00 2001 From: Matthew Strapp Date: Wed, 20 Feb 2019 15:10:20 -0600 Subject: (Screams internally) --- ee1301/wk3/lab3/multTable.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ee1301/wk3/lab3/multTable.cpp') diff --git a/ee1301/wk3/lab3/multTable.cpp b/ee1301/wk3/lab3/multTable.cpp index 5201c07..8e2e887 100644 --- a/ee1301/wk3/lab3/multTable.cpp +++ b/ee1301/wk3/lab3/multTable.cpp @@ -1,18 +1,18 @@ #include using namespace std; int main() { - int row=1, column=1; - for (row; row<=10; row++) { - for (column=10; column>0; column--) { - int temp = row*column; - if (temp!=100) { + int r=1, c=1; + for (r; r<=10; r++) { + for (c=10; c>0; c--) { + int ans = r*c; + if (ans!=100) { cout << " "; } - if (temp<10) { + if (ans<10) { cout << " "; } - cout << temp; + cout << ans; } cout << endl; } -} \ No newline at end of file +} -- cgit v1.2.3