โ Back to Loops
Question 116
Multiplication Table of 4
Multiplication Table of 4
Use a for loop to print the multiplication table of 4 from 1 to 10, one line each in the format '4 x i = result'.
4 x 1 = 4
4 x 2 = 8
...
4 x 10 = 40Expected Output:
4 x 1 = 4 4 x 2 = 8 4 x 3 = 12 4 x 4 = 16 4 x 5 = 20 4 x 6 = 24 4 x 7 = 28 4 x 8 = 32 4 x 9 = 36 4 x 10 = 40
Topics:
Loops
Code Editor
1
Tab to indent ยท Ctrl+Enter to run ยท Ctrl+Space to expand shortcuts (cw, cr, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.