The book I have, the way it's written, is somewhat confusing. The tutorials on this website explain things a little easier. I now understand the basic concepts, but when I have to apply it, I'm lost. I don't know how to begin unless I have examples to compare to. Could I get a few examples to compare, so I can at least get an idea of what the questions mean and how I'm supposed to write it?
My questions are:
1)How may the int variables months, days, and years be defined in one statement, with months initialized to 2 and years initialized to 3?
2)Write assignment statements that perform the following operations with the variables a, b, and c.
a) Adds 2 to a and stores the result in b.
b) Divides a by 3.14 and stores the result in b.
c) Stores the ASCII code for 'B' in c.