diff --git a/tasizan.rb b/tasizan.rb new file mode 100755 index 0000000..f75eb6e --- /dev/null +++ b/tasizan.rb @@ -0,0 +1,24 @@ +#!/usr/bin/env ruby +# coding: utf-8 +require 'cgi' + +puts "Content-type: text/html; charset=utf-8\n\n" + +c = CGI.new +x = c['foo'].to_i +y = c['bar'].to_i +print(<<~EOF) + + +
+x=#{x}, y=#{y}のとき x+y=#{x+y.to_i}
+ + + +EOF