- Joined
- Jun 21, 2015
- Messages
- 1,441
- Reaction score
- 680
- First Language
- Polish
- Primarily Uses
- Other
@timer = @timer == 10 ? 0 : @timer + 1Aww.. that was so obvious, why I cannot think that way in first place, thank you.
I really need to focus more.
@thing = @timer / 2 if @timer % 2 == 0Yup, thank you.
About % operator - I have read about this, but never tried using this and forgot about that.
I took a look on that note again and if I'm not mistaking it works like this?
49 % 5 = 4, because 49 : 5 = 9 and there's '4' left - right?
I feel so stupid now.
But at least, I think that was my first question, that really didn't needed its own thread. ( ͡° ͜ʖ ͡°)
I really need to focus more.
@thing = @timer / 2 if @timer % 2 == 0Yup, thank you.
About % operator - I have read about this, but never tried using this and forgot about that.
I took a look on that note again and if I'm not mistaking it works like this?
49 % 5 = 4, because 49 : 5 = 9 and there's '4' left - right?
I feel so stupid now.
But at least, I think that was my first question, that really didn't needed its own thread. ( ͡° ͜ʖ ͡°)
Last edited by a moderator:

'// (Enter ALT+1 to type this character), but that's not the point, the range is 2^8char d = 2;int e = 10;// So let's do some things.cout<<c; // cout<< is the same as puts, and this will output
' (or ALT+3), no conversion.Note that character
