Write declaration statements to declare and initialize two variables : one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5.

Write declaration statements to declare and initialize two variables : one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5.

LANGUAGE: C++

CHALLENGE:

Write declaration statements to declare and initialize two variables : one is an integer variable named age, initialized to 18, and the other variable, named weight, is initialized to 114.5.

SOLUTION:



int age;
age = 18;

float weight;
weight = 114.5;

Add comment