O'Reilly logo

Exercises for Programmers by Brian P. Hogan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

30Multiplication Table

Create a program that generates multiplication tables for the numbers 0 through 12.

Example Output

 
0 X 0 = 0
 
0 X 1 = 0
 
....
 
12 x 11 = 132
 
12 x 12 = 144

Constraint

  • Use a nested loop to complete this program.

Challenges

  • Create a graphical program. Use a drop-down list to change the base number. Generate or update the table when the number is selected.

  • Generate a single multiplication table like the following:

images/repetition/multiplication_table.png

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required