Respuesta :

Using the knowledge in computational language in C++ it is possible to write a code that will calculate the age of someone through the difference of years.

Writing code in C++ has:

#include <iostream>

using namespace std;

int main()

{

//Declare variables

int myCurrentAge=29;

int myNewAge;

const int YEAR = 2050; //Declare constant YEAR=2050

int currentYear=2014;

myNewAge=myCurrentAge+(YEAR-currentYear); //calculate new age

cout<<"My Current Age is "<<myCurrentAge<<endl;

cout<<"I will be "<<myNewAge<<" in "<<YEAR<<"."<<endl; //display values on console

return 0;

}

See more about C++ at brainly.com/question/19705654

#SPJ1

Ver imagen lhmarianateixeira