[백준/BOJ] 2372번: Livestock Count (Ada)

문제

https://www.acmicpc.net/problem/2372

 

문제 이해

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.

입출력 예제

 

 

풀이

Ada의 문법을 살펴보고 출력 코드를 작성해주면 된다.

with Ada.Text_IO; use Ada.Text_IO;

procedure Main 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 Main;