put and p
times and while
Wrote over some codes.

- コード規約に沿って、書き直し
  - 慣れてきたら見てみてください[Ruby coding rule](https://github.com/styleguide/ruby)