Code:
#include <iostream>

using namespace std;

int main()
{
    int age;
    char name[8];
    
    cout<<"How old are you?";
    cin>>age;
    cout<<"\nAnd what is your name?";
    cin>>name;
    cout<<"\nSo you're " << name << " and you are " << age << "years old.";
    
    return 0;
}
Uhh...whenever I run the progra it never shows the last line cout<<"\nSo you're " << name << " and you are " << age << "years old.";. It just asks me what my name is and once i hit type in my name and hit enter, it closes. I know this is extremely basic, but I just want to make sure I am very comfortable with the basics. Anyone know why this is happening?