So I’m just curious
Say we had a Int named “Jimmy” (I don’t know) that is lets say is equal to “2”.
And I want it so it adds up to lets say “50”
Instead of doing “Jimmy++;” 48 times, Is there any way to get around this?
Thanks In Advance.
jimmy++;
is equivalent to:
jimmy=jimmy+1;
is equivalent to
jimmy+=1;
So, to increment by 48:
jimmy+=48;
or
jimmy= jimmy + 48;