Java Software Solutions >EX2.9 > Solution

Problem:

Write four different program statements that increment the value of an integer variable total.

Output:

Not Applicable

Solution:

total = total + 1;
total += 1;
total++;
++total;

1 comment:

  1. tummy liposuction Korea's #1 Liposculpture Clinic. Lydian plastic surgery is the home of VIP patients. Celebrities, Influencers and Diplomats all know and trust Doctor An and Lydian plastic surgery clinic to provide detailed results.

    ReplyDelete