How to resolve the algorithm Multiplication tables step by step in the Euphoria programming language
Published on 12 May 2024 09:40 PM
How to resolve the algorithm Multiplication tables step by step in the Euphoria 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 Euphoria programming language
Source code in the euphoria programming language
puts(1," x")
for i = 1 to 12 do
printf(1," %3d",i)
end for
puts(1,'\n')
for i = 1 to 12 do
printf(1,"%2d",i)
for j = 1 to 12 do
if j
puts(1," ")
else
printf(1," %3d",i*j)
end if
end for
puts(1,'\n')
end for
You may also check:How to resolve the algorithm Array length step by step in the Wren programming language
You may also check:How to resolve the algorithm One-dimensional cellular automata step by step in the Mathematica / Wolfram Language programming language
You may also check:How to resolve the algorithm 99 bottles of beer step by step in the MAXScript programming language
You may also check:How to resolve the algorithm Pointers and references step by step in the OCaml programming language
You may also check:How to resolve the algorithm Non-decimal radices/Output step by step in the Racket programming language