728x90
문제-https://www.acmicpc.net/problem/2372
2372번: Livestock Count
Print the table below as shown. The character “-”, is a dash not an underscore.
www.acmicpc.net
이 문제는 영어지만 간단히 말해 output을 Ada로 출력하라는 문제이다.
코드
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;
-정말 잘 쓰이지 않는 언어라,,, 내용 찾기도 힘들었다. 전문 문서로만 이루어진건 아니지만 나무위키의 아래 글을 첨부하면 금방 풀 수 있다..!
https://namu.wiki/w/Ada(%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D%20%EC%96%B8%EC%96%B4)
Ada(프로그래밍 언어) - 나무위키
이 저작물은 CC BY-NC-SA 2.0 KR에 따라 이용할 수 있습니다. (단, 라이선스가 명시된 일부 문서 및 삽화 제외) 기여하신 문서의 저작권은 각 기여자에게 있으며, 각 기여자는 기여하신 부분의 저작권
namu.wiki
결과
ouput:
Animal Count
-----------------
Chickens 100
Clydesdales 5
Cows 40
Goats 22
Steers 2
728x90