#include <iostream>
#include <climits>
using namespace std;
struct Date{
int year;
int mon;
int day;
};
struct Person{
string name;
Date birthday;
};
int main() {
Person p;
cin >> p.name;
cin >> p.birthday.year >> p.birthday.mon >> p.birthday.day;
cout << "이름: " << p.name << endl;
cout << "생일: " << p.birthday.year << "년 " <<p.birthday.mon << "월 "<<p.birthday.day<<"일 "<< endl;
return 0;
};
To embed this project on your website, copy the following code and paste it into your website's HTML: