NBA - Boston Celtics

Saturday, 21 April 2012

INFORMATION OF EMPLOYEE


CODE:
#include<iostream.h>
#include<conio.h>
#include<stdio.h>
void main()
{
clrscr();


char name[20],designation[20],dob[20],empcode[15],add[50],type[20];
float salary;
cout<<"enter employee's name:";
gets(name);
cout<<"enter employee's designation:";
gets(designation);
cout<<"enter employee's date of birth:";
gets(dob);
cout<<"enter employee's address:";
gets(add);
cout<<"enter employee's salary:";
cin>>salary;
cout<<"enter employee's code:";
gets(empcode);
cout<<"enter employee's type:";
gets(type);
clrscr();
cout<<"BELOW ARE THE IFORMATION ABOUT THE GIVEN EMPLOYEE:\n";
cout<<"\nname:";
puts(name);
cout<<"\ndesignation:";
puts(designation);
cout<<"\ndate of birth:";
puts(dob);
cout<<"\nadress:";
puts(add);
cout<<"\n\salary:"<<salary;
cout<<"\n\nemployee code:";
puts(empcode);
cout<<"\ntype(p/t):";
puts(type);


getch();
}

OUTPUT:


No comments:

Post a Comment