Newer
Older
Ruby / hello2.rb
@TOGASHI Yuto TOGASHI Yuto on 25 Sep 2021 184 bytes 2021-09-25 04:45:53
#!/usr/bin/env ruby
# -*-coding: utf-8 -*-

def hello2(x)
  printf("Hello, %s-san!\n", x)
  printf("%sさんこんにちは!\n", x)
end

hello2("太郎")
hello2("Kate")
hello2("Mike")