Beginner1111 Beginner1111 - 6 months ago 53
Ruby Question

Syntax error, unexpected keyword_end and unexpected end_of_input

enter image description here

I don't know why i am getting this error

Answer

++ operator doesn't exist in Ruby. Just use += 1.