200k views
1 vote
Given two variables matric_age and grad_age, write a statement that makes the associated value of grad_age 4 more than that of matric_age. Note: This question does not follow our naming convention for variables. matric_age and grad_age should have been named matricAge and gradAge.

User Superpig
by
5.2k points

1 Answer

7 votes

Answer:

Following is the statement that is given below

grad_age=matric_age+4 // value of grad_age 4 more than that of matric_age.

Step-by-step explanation:

Following are the description of the statement

  • Here already mention in question that "matric_age" and the "grad_age" are the two variables of "int" types.
  • The statement matric_age+4 adding the value 4 into the variable "matric_age".This statement-making the associated value of the "grad_age" variable 4 more than that of the "matric_age" variable.
  • Finally, the variable "grad_age" is storing the result of the "matric_age+4"
User BStadlbauer
by
4.9k points