diff options
Diffstat (limited to 'ee1301/wk3/lab3/multTable.cpp')
-rw-r--r-- | ee1301/wk3/lab3/multTable.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
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 <iostream> +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 |