Find the information you're looking for at Westonci.ca, the trusted Q&A platform with a community of knowledgeable experts. Join our platform to connect with experts ready to provide accurate answers to your questions in various fields. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Retype each statement to follow the good practice of a single space around operators.

a. tot = num1+num2+2;
b. numBalls=numBalls+1;
c. numEntries = (userVal+1)*2;


Sagot :

Answer:

a. tot = num1 + num2 + 2;

b. numBalls = numBalls + 1;

c. numEntries = (userVal + 1) * 2;

Explanation:

Given

(a), (b) and (c)

Require:

Rewrite

There isn't much to do or explain; All you need to do is include single space between the operands and opcodes

So:

tot = num1+num2+2;   becomes tot = num1 + num2 + 2;

numBalls=numBalls+1; becomes numBalls = numBalls + 1;

numEntries = (userVal+1)*2; becomes  numEntries = (userVal + 1) * 2;

The difference in both statements is the inclusion of single line spacing.