Task#10 Assignment in C++
#include<iostream>
using namespace std;
struct Employee
{
string EmpPhoneNo;
long double EmpId;
string EmpName;
int EmpGrade;
};
int main()
{
Employee EE[10];
for(int i=0;i<10;i++)
{
cout<<"\nEnter Your Phone Number:\t";cin>>EE[i].EmpPhoneNo;
cout<<"\nEnter Your ID:\t";cin>>EE[i].EmpId;
cout<<"\nEnter Your Name:\t";cin>>EE[i].EmpName;
cout<<"Enter Your Grade:\t";cin>>EE[i].EmpGrade;
}
for(int j=0;j<10;j++)
{
cout<<"\n\nPhone Number is : "<<EE[j].EmpPhoneNo
<<"\nEmployee ID is : "<<EE[j].EmpId
<<"\nEmployee Name is : "<<EE[j].EmpName
<<"\nEmployee Grade is : "<<EE[j].EmpGrade;
}
}
Comments
Post a Comment