From 6af4165c7b2dae8240fb4a0c368a93b7d4f7eb96 Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Wed, 20 Feb 2019 19:29:06 +0000 Subject: MORE LABS --- ee1301/wk3/lab3/multTable.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 ee1301/wk3/lab3/multTable.cpp (limited to 'ee1301/wk3/lab3/multTable.cpp') diff --git a/ee1301/wk3/lab3/multTable.cpp b/ee1301/wk3/lab3/multTable.cpp new file mode 100644 index 0000000..5201c07 --- /dev/null +++ b/ee1301/wk3/lab3/multTable.cpp @@ -0,0 +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) { + cout << " "; + } + if (temp<10) { + cout << " "; + } + cout << temp; + } + cout << endl; + } +} \ No newline at end of file -- cgit v1.2.3