0
0

More than 3 years have passed since last update.

Ruby縦書き

Posted at

rubyで縦書きする方法

結論

a = gets.chars
puts a

例えば下記のようにgetsにtokyoを当てはめると

a = Tokyo.chars
puts a

出力結果

T
o
k
y
o

という感じになります

以上

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0