chubbybunny162 chubbybunny162
  • 21-01-2020
  • Computers and Technology
contestada

Given two integer variables oldRecord and newRecord, write a statement that gives newRecord the same value that oldRecord has

Respuesta :

stigawithfun
stigawithfun stigawithfun
  • 21-01-2020

Answer:

Given;

int oldRecord;

int newRecord;

newRecord = oldRecord;

Explanation:

The above code has been written in Java.

Two integer variables, oldRecord and newRecord have been given.

To assign the value of oldRecord to newRecord, we should use the assignment operator (=) as follows;

newRecord = oldRecord;

Note: the variable that is to be assigned a value (newRecord) should be on the left hand side of the equation while the value to be assigned to it (oldRecord) should be on the right hand side.

Hope this helps!

Answer Link

Otras preguntas

what is the definition of organization ? Briefly explain each part of the definition?​
solve for X explain steps too pls
Anybody can help? (Here's a pfp)
What type of figurative language is jingle bells jingle bells jingle all the way
What controversial law was passed forcing northerners to return runaway slaves back to their masters in the south? Southern Bell Clause Popular Sovereignty Fugi
HELPPPPPPP!!!! I NEED ANSWER QUICK!!!!
In order to write a good problem statement, you need to identify the following components of the problem. who, what, when, how O True O False
ALGEBRA Ben Shield's credit card uses the unpaid-balance method to compute the finance charge at a monthly periodic rate of 1.875%. During the monthly billing c
12 circles to 8 squares simplified is what
Who else does online homeschooling on time4learning?