Print a table that describes the current count of all your livestock.
Print the table below as shown. The character “-”, is a dash not an underscore.
Print the table below as shown. The character “-”, is a dash not an underscore.
Animal Count
-----------------
Chickens 100
Clydesdales 5
Cows 40
Goats 22
Steers 2
High School > PLU High School Programming Contest > PLU 2017 > Novice 11번
with Ada.Text_IO; use Ada.Text_IO;
procedure Table is
begin
Put_Line("Animal Count");
Put_Line("-----------------");
Put_Line("Chickens 100");
Put_Line("Clydesdales 5");
Put_Line("Cows 40");
Put_Line("Goats 22");
Put_Line("Steers 2");
end Table;
Ada
언어로만 제출이 됐었다.
그래서
-- Hello world example
--
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line("Hello, world!");
end Hello;
Ada
문법을 살펴보고 그대로 출력하면 됐다!