Ask Question
11 June, 12:27

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. 11 June, 16:01
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers