Rewrite the code from the previous exercise to be shorter, by declaring the variables together and by
Question:
Rewrite the code from the previous exercise to be shorter, by declaring the variables together and by using the special assignment operators (e.g., += , −= , *= , and /= ) as appropriate.
Data from Previous Problem
int first = 8;
int second = 19;
first = first + second;
second = first − second;
first = first − second;
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: