Ask Question
31 July, 11:33

Write a statement that declares and initializes two integer variables. Call the first one age and initialize it to 15, and call the second one weight and initialize it to 90.

+3
Answers (1)
  1. 31 July, 12:13
    0
    First is to define the language in which to make the statement, I chose the language C, because it is the most common. To initialize the variable, the first thing is to define the type, in this case it is an integer type.

    In language C, that is determined by int, then the name of the variable, in this case it would be age. We close with; To finish the order. Then we give the courage that asks us to initiate.

    In the end, it would look like this:

    int age;

    age = 15;

    int weight;

    weight = 90;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write a statement that declares and initializes two integer variables. Call the first one age and initialize it to 15, and call the second ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers