치춘짱베리굿나이스

[백준] 2372 본문

기타공부/기타의 기타

[백준] 2372

치춘 2023. 7. 5. 12:41

Livestock Count

문제

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.

풀이

with Ada.Text_IO;
procedure Hello is begin
    Ada.Text_IO.Put_Line("Animal      Count");
    Ada.Text_IO.Put_Line("-----------------");
    Ada.Text_IO.Put_Line("Chickens      100");
    Ada.Text_IO.Put_Line("Clydesdales     5");
    Ada.Text_IO.Put_Line("Cows           40");
    Ada.Text_IO.Put_Line("Goats          22");
    Ada.Text_IO.Put_Line("Steers          2");
end Hello;
Comments