C++ program to print whole family
#include#include
using namespace std;
int main(){
char grandfather[20];
char grandmother[20];
char father[20];
char mother[20];
char name[20];
char sister[20];
char brother[20];
cout<<"\n Enter First Name of ur Grand Father : ";
cin>>grandfather;
cout<<"\n Enter First Name of ur Grand Mother : ";
cin>>grandmother;
cout<<"\n Enter First Name of ur Father : ";
cin>>father;
cout<<"\n Enter First Name of ur mother : ";
cin>>mother;
cout<<"\n Enter First Name of ur Sister : ";
cin>>sister;
cout<<"\n Enter First Name of ur Brother: ";
cin>>brother;
cout<<"\n Enter Your First Name : ";
cin>>name;
cout<<"\n ### Your Family ####";
cout<<"\nGrand Parents \t-->"<<grandfather<<" + "<<grandmother;
cout<<"\nParents \t-->"<<father<<" + "<<mother;
cout<<"\nSiblings \t-->"<<sister<<" + "<<brother;
cout<<"\nMe \t\t-->"<<name;
return 0;
}