Learning outcomes
By the end of this lecture, you should be able to:- print multiplication table for one number
- print tables for multiple numbers
- format output for readability
Single table (1 to 10)
Table with custom limit
Multiple tables (2 to 5)
Nested loop understanding
Outer loop chooses table number.Inner loop prints one table entries.
Exam hints and traps
- use
limit + 1for inclusive last row - reset inner-loop logic correctly per table
- formatting alignment may be asked in output-prediction
Practice
- Print table of
7till15. - Print tables from
3to5. - Print table in reverse order (10 to 1).
