Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Latest commit

 

History

History
28 lines (20 loc) · 1.57 KB

practice.md

File metadata and controls

28 lines (20 loc) · 1.57 KB

Perl入学式 #2 復習問題

stdin.pl

sum.pl

  • 1から100までの値を配列に格納し, その配列の全ての数値を足した結果を出力するsum.plを作成しよう
  • 使える知識

factorial.pl

  • 標準入力により数値を一つ読み込み, その数値を階乗した値を出力するfactorial.plを作成しよう
  • 使える知識

even_or_odd.pl

  • 標準入力により数値を一つ読み込み, その数値が偶数なら"even", 奇数なら"odd" という文字を出力するeven_or_odd.plを作成しよう
  • 使える知識