cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Increment question
Increment question
Aug 9, 2014 at 10:00pm UTC
RedLunar
(2)
I know how to increment by 1 but i want to increment by say 3. What I am trying to do is to like 3 * 1 = 3, 3 * 2 = 6 etc to output 3, 6, 9, 12 etc like a multiplication table. Is this possible and how so?
Aug 9, 2014 at 10:10pm UTC
admkrk
(505)
Is this what you are looking for?
Compound assignment (+=, -=, *=, /=, %=, >>=, <<=, &=, ^=, |=)
http://www.cplusplus.com/doc/tutorial/operators/
Aug 11, 2014 at 9:15pm UTC
RedLunar
(2)
thankyou
Topic archived. No new replies allowed.