โ Back to Loops
Question 60
For Loop: Times Table of Four
For Loop: Times Table of Four
Use a for loop to print the multiplication table of 4, from 1 to 10. Each line should read '4 x i = result'. Expected output: 4 x 1 = 4 4 x 2 = 8 ... 4 x 10 = 40
Expected 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 (clog, fn, fori)
Your Output
Run your code to see the output here...
Test Cases
Run your code to see test case results.