004-004-005
For Loop: Multiplication Table
Easy
Problem Description
for loop: Multiplication Table
In this problem, you will create a program that uses a for loop to repeatedly multiply a given number by 1 through 9 and displays each result to standard output.
Learning Objective: Perform sequential calculations with for loop
Display multiplication table for specified number. Calculate multiplications from 1 to 9 using for loop.
Input
Line 1: Number (integer 1-9)
Output
[num] x 1 = [result]
[num] x 2 = [result]
...
[num] x 9 = [result]
Ready to Try Running Code?
Log in to access the code editor and execute your solutions for this problem.
Don't have an account?
Sign Up