#include <iostream>
using namespace std;
string nome[400];
int età[400];
int main() {
cout<<"Write the name and the surname.\n";
getline(cin, nome[0]);
cout<<"Write the age.\n";
cin>>età[0];
if (età[0]<18) {
cout<<"The student "<<nome[0]<<" is a minor\n";
} else {
cout<<"The student "<<nome[0]<<" is an adult\n";
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: