Data update
This commit is contained in:
parent
4bb20c9b71
commit
cbaf4c4b64
12390 changed files with 318560 additions and 27248 deletions
25
Task/Multiplication-tables/Ada/multiplication-tables.adb
Normal file
25
Task/Multiplication-tables/Ada/multiplication-tables.adb
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
with Ada.Text_IO; use Ada.Text_IO;
|
||||
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
|
||||
procedure Multiplication_Table is
|
||||
package IO is new Integer_IO (Integer);
|
||||
use IO;
|
||||
begin
|
||||
Put (" | ");
|
||||
for Row in 1..12 loop
|
||||
Put (Row, Width => 4);
|
||||
end loop;
|
||||
New_Line;
|
||||
Put_Line ("--+-" & 12 * 4 * '-');
|
||||
for Row in 1..12 loop
|
||||
Put (Row, Width => 2);
|
||||
Put ("| ");
|
||||
for Column in 1..12 loop
|
||||
if Column < Row then
|
||||
Put (" ");
|
||||
else
|
||||
Put (Row * Column, Width => 4);
|
||||
end if;
|
||||
end loop;
|
||||
New_Line;
|
||||
end loop;
|
||||
end Multiplication_Table;
|
||||
Loading…
Add table
Add a link
Reference in a new issue