filmov
tv
Java Practice-it | Primitive Data and Definite Loops | Self-Check 2.15 : firstSecond2

Показать описание
Topics:
basics, mystery, variables
Question:
Rewrite the following code from the previous exercise to be shorter, by declaring the variables together on the same line, and by using the special assignment operators (e.g., +=, -=, *=, and /=) as appropriate.
int first = 8;
int second = 19;
first = first + second;
second = first - second;
first = first - second;
Problem:
basics, mystery, variables
Question:
Rewrite the following code from the previous exercise to be shorter, by declaring the variables together on the same line, and by using the special assignment operators (e.g., +=, -=, *=, and /=) as appropriate.
int first = 8;
int second = 19;
first = first + second;
second = first - second;
first = first - second;
Problem: