Question #53625

what are two other ways you could write
$x = $x + 1;
1

Expert's answer

2015-07-24T02:49:33-0400

Question #53625, Programming, Perl, for completion

Dear expert, if you are ready to complete the question below please confirm your readiness.

what are two other ways you could write


$x = $x + 1;


Answer:


$x = $x + 20;
print "first method = " . ($x = $x + 1) . ", second method = " . ($x += 1);


TZ

first method = 22 second method = 22

C:\>

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!
LATEST TUTORIALS
APPROVED BY CLIENTS