How to resolve the algorithm Multiplication tables step by step in the Maple programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Multiplication tables step by step in the Maple programming language

Table of Contents

Problem Statement

Produce a formatted   12×12   multiplication table of the kind memorized by rote when in primary (or elementary) school.

Only print the top half triangle of products.

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Multiplication tables step by step in the Maple programming language

Source code in the maple programming language

printf("    ");
for i to 12 do
	printf("%-3d   ", i);
end do;
printf("\n");
for i to 75 do
	printf("-");
end do;
for i to 12 do
	printf("\n%2d| ", i);
	for j to 12 do
		if j
			printf("      ");
		else
			printf("%-3d   ", i * j);
		end if
	end do
end do

  

You may also check:How to resolve the algorithm URL decoding step by step in the Haskell programming language
You may also check:How to resolve the algorithm Brownian tree step by step in the Evaldraw programming language
You may also check:How to resolve the algorithm Keyboard input/Obtain a Y or N response step by step in the RPL programming language
You may also check:How to resolve the algorithm Strip a set of characters from a string step by step in the Yabasic programming language
You may also check:How to resolve the algorithm Run-length encoding step by step in the Perl programming language