Ask Question

Given two integer variables matricAge and gradAge, write a statement that gives gradAge a value that is 4 more than the value of matricAge.

+5
Answers (1)
  1. 14 March, 06:02
    0
    gradAge=matricAge+4; //Statement to give gradAge a value 4 more than matricAge.

    Explanation:

    This statement assigns the value stored in the matricAge variable with 4 added to it. So the value assigned to the gradAge is 4 more than value of matricAge. We have used assignment operator (=) to do this. Assignment operator assigns the value/variable's value written in the right to the variable to the left.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Given two integer variables matricAge and gradAge, write a statement that gives gradAge a value that is 4 more than the value of matricAge. ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers