110k views
0 votes
Given two int variables matricAge and gradAge, write a statement that gives gradAge a value that is 4 more than the value of matricAge.

1 Answer

3 votes

Answer:

The following are the code to this question:

gradAge = 4 + matricAge; // add value 4 in matricAge and store it value in gradAge variable

Step-by-step explanation:

In the given question it is already defined, that two integer variable, that is "matricAge and gradAge" is declared, that holds some value.

In the above code, we use both the above-declared variable and add value 4 in the "matricAge" variable and store its calculated value into the "gradAge" variable

User Mpm
by
4.8k points