#include <iostream>
using namespace std;
struct birth{
char day[2];
int month, year;
}date;
struct stuff{
char name[20];
char gender[2];
float salary;
}stf;
int main(){
cout<<"\nInput Name:"; cin>>stf.name;
cout<<"\nInput Gender:"; cin>>stf.gender;
cout<<"\nInput Day:"; cin>>date.day;
cout<<"\nInput Month:"; cin>>date.month;
cout<<"\nInput Year:"; cin>>date.year;
cout<<"\nInput Salary:"; cin>>stf.salary;
cout<<"\nName:"<<stf.name<<"\t Gender:"<<stf.gender<<"\nDay:"<<date.day
<<"\t Month:"<<date.month<<"\t Year:"<<date.year<<"\n Salary:"<<stf.salary;
cout<<endl;
return 0;
}
0 Comments