Week 12

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Name: Tasmina Iftikhar

Class: Bs-IT
Roll NO: 2k20/IT/129
Excersice No : 1
#include<iostream>
#include<string>
using namespace std;
struct employee
{
string name;
short id;
short age;
double wage;

};
int main()
{
employee joe={"Joe", 14 , 32 , 24.15};
employee frank={"Frank", 15, 28 , 18.27};
cout<<"NAME\tID\tAGE\tWAGE"<<endl<<joe.name<<"\t"<<joe.id<<"\t"<<joe.age<<"\
t"<<joe.wage<<endl<<frank.name<<"\t"<<frank.id<<"\t"<<frank.age<<"\t"<<frank.wage;
return 0;
}

You might also like