LoginSignup
2
1

More than 3 years have passed since last update.

【Ruby】入力された値の処理

Posted at

この記事の概要

・Rubyについて、Progateで学んだことを書き記す
・ガチ初心者によるもの
・主に備忘録として、随時書き足していく

項目

入力された値を受け取る

※入力フォームに入力された値を取得する方法とは全く別の可能性あり、あとで加筆修正

info = gets.chomp

count = gets.chomp.to_i //入力された内容をint型で受け取り、変数に代入

2
1
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
2
1