Write a program that predicts your age in 25 years from now so that the program receives the year of your birth and then prints the expected lifeWith C++

This seems a bit too easy. I've read your software requirements in this discussion so we can use the following for the final answer.

The United Nations estimate a global average life expectancy of 72.6 years for 2019 – the global average today is higher than in any country back in 1950.

Now that we have that we can write your code. I used https://www.onlinegdb.com/online_c++_compiler to check if it works.

#include <iostream>

using namespace std;

int main()
{
    int age;
    cout<<"What is your current age?";
    cin >> age;
    cout<<"The global average life expectancy for humans is 72.6 years for 2019";
    return 0;
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.