javidx9 age

#include <iostream>

int main() {
    // Declare variables for age and year of birth
    int age;
    int birthYear;

    // Prompt user for their age
    std::cout << "Enter your age: ";

    // Read user input for age
    std::cin >> age;

    // Calculate the birth year by subtracting age from the current year (assuming the current year is 2023)
    birthYear = 2023 - age;

    // Display the calculated birth year
    std::cout << "Your birth year is: " << birthYear << std::endl;

    return 0;
}