Commit 24f6888
committed
feat: Display multiplication table of a user-entered number using for-loop
🧠 Logic:
- Take integer input `n` from the user.
- Use a `for` loop from 0 to 10 to print the multiplication table.
- On each iteration, print the formatted result: `n x i = product`.
Signed-off-by: Somesh diwan <[email protected]>1 parent 9fa4986 commit 24f6888
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | 9 | | |
12 | | - | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
| |||
0 commit comments