No errors are shown on Microsoft visual, attempted to use ChatGPT to find an error and it didn't help. When running the code it allows for name input but not for age input, it automatically inputs 0:
Enter full name: Nick
Input birth year: 0 you are 858995483 years old!
..................
// 2023.08.27
// HW 2: Age Calculator
#include <iostream>
#include <string>
using namespace std;
int main()
{
string name;
int birthYear, currYear, age;
currYear = 2023;
cout << "Enter full name: ";
cin >> name;
cout << "Input birth year: ";
cin >> birthYear;
age = currYear - birthYear;
cout << name << " you are " << age << " years old!";
return 0;
}
