#include <iostream>
#include <string>using namespace std;
void main()
{
int th,tg,bl;
string namadepan[3] = {"Kim","Lee","Park"};
string namatengah[10]=
{"Won","Young","Yeon","Ah","Bin","Soo","Ho","Hoon","Sun","Kyung"};
string namabelakang[12] =
{"Ji","Seung","Hye","Hyun","Eun","Jung","Dong","Hee","Jeong","Jin","Min","Tae"};
cout<<"Tanggal Lahirmu : ";
cin >> tg;
cout<<"Bulan Lahirmu : ";
cin>>bl;
cout<<"Tahun Lahirmu : ";
cin>>th;
cout<<"Nama Koreamu : "<<namadepan[th%3]<<" "<<namatengah[bl-1]<<" "<<namabelakang[tg%10]<<endl<<endl;
}
No comments:
Post a Comment