June 2018 Update
This commit is contained in:
parent
ba8067c3b7
commit
22f33d4004
5278 changed files with 84726 additions and 14379 deletions
21
Task/Multiplication-tables/HolyC/multiplication-tables.holyc
Normal file
21
Task/Multiplication-tables/HolyC/multiplication-tables.holyc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
U8 i, j, n = 12;
|
||||
for (j = 1; j <= n; j++)
|
||||
if (j != n)
|
||||
Print("%3d%c", j, ' ');
|
||||
else
|
||||
Print("%3d%c", j, '\n');
|
||||
|
||||
for (j = 0; j <= n; j++)
|
||||
if (j != n)
|
||||
Print("----");
|
||||
else
|
||||
Print("+\n");
|
||||
|
||||
for (i = 1; i <= n; i++) {
|
||||
for (j = 1; j <= n; j++)
|
||||
if (j < i)
|
||||
Print(" ");
|
||||
else
|
||||
Print("%3d ", i * j);
|
||||
Print("| %d\n", i);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue