We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65b09e3 commit bb6d353Copy full SHA for bb6d353
ruby/lesson2/tutorial.md
@@ -79,9 +79,11 @@ In this exercise we want to generate two random numbers x and y using `Random.ra
79
```ruby
80
print "#{x} + #{y} = "
81
82
-answer = gets.chomp().to_i
+answer = gets.to_i
83
```
84
85
+> [to_i](http://apidock.com/ruby/Symbol/to_i) returns an integer representation of an object.
86
+
87
if the answer is correct, output `Right!`. If the answer is incorrect, output `Wrong :(`.
88
89
> Use an _if .. else .._ statement
0 commit comments