/*Display name,salary,contact no,mail id of employee using stucture*/ #include void main() { struct employee { char name[20],mail[20]; int sal,contact; }e; printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t"); scanf("%s%d%d%s",e.name,&e.contact,&e.sal,e.mail); printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.name,e.contact,e.sal,e.mail); }
#include void main() { struct emp { int salary; int mbno; char name[10]; char id[10]; }b; printf("\n enter the employee name="); scanf("%s",&b.name); printf("\n enter contact no of employee="); scanf("%d",&b.mbno); printf("\n enter the salary of employee="); scanf("%d",&b.salary); printf("\n enter email id of employee="); scanf("%s",&b.id);
#include void main() { struct emp { char name[20],mail[20]; float salary; int mno; }e; printf("\nEnter the name of employee,salary,contact no,mail ID of employee:"); scanf("%s%f%d%s",e.name,&e.salary,&e.mno,e.mail); printf("\nInformation of Employee:\n"); printf("\nName of Employee:%s\nSalary of employee:%f\nContact no of employee:%d\nMail Id Of employee:%s\n",e.name,e.salary,e.mno,e.mail); }
//display information of emplyoee #include void main() { struct emp { int salary; int mbno; char name[10]; char id[10]; }b; printf("\n enter the employee name="); scanf("%s",b.name); printf("\n enter contact no of employee="); scanf("%d",&b.mbno); printf("\n enter the salary of employee="); scanf("%d",&b.salary); printf("\n enter email id of employee="); scanf("%s",b.id);
/*Display name,salary,contact no,mail id of employee using stucture*/ #include void main() { struct employee { char name[20],mail[20]; int sal,contact; }e; printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t"); scanf("%s%d%d%s",e.name,&e.contact,&e.sal,e.mail); printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.name,e.contact,e.sal,e.mail); }
#include void main() { struct emp { char name[20]; int salary; int cno; char id[20]; }x; printf("\n enter the employee name="); scanf("%s",&x.name); printf("\n enter the salary="); scanf("%d",&x.salary); printf("\n enter the contact no="); scanf("%d",&x.cno); printf("\n enter the email id="); scanf("%s",&x.id);
#include void main() { struct employee { char name[10]; float salary; int id; int contactno; }e; printf("\n\tEnter the name of employee"); scanf("%s",e.name); printf("\n\tEnter the salary of employee"); scanf("%f",&e.salary); printf("\n\tEnter the id of employee"); scanf("%d",&e.id); printf("\n\tEnter the contactno of employee"); scanf("%d",&e.contactno);
#include void main() { struct emp { char name[20],mail[20]; float salary; int mno; }e; printf("\n\tEnter the name of employee,salary,contact no,mail ID of employee:\n\t"); scanf("%s%f%d%s",e.name,&e.salary,&e.mno,e.mail); printf("\n\t Employee Info:\n"); printf("\nName of Employee:%s\nSalary of employee:%f\nContact no of employee:%d\nMail Id Of employee:%s\n",e.name,e.salary,e.mno,e.mail); }
// Using array of structure display details of 10 employe #include void main() { int i; struct employe { char name[20]; float salary; char mailid[30]; int contact;
}e[10]; for(i=0;i<=9;i++) { printf("\n Enter name of employe="); scanf("%s",e[i].name); printf("\n Enter salary of employe="); scanf("%f",&e[i].salary); printf("\n Enter mail id of employe="); scanf("%s",e[i].mailid); printf("\n Contact no of employe="); scanf("%d",&e[i].contact); } for(i=0;i<=9;i++) { printf(" \n Name of empolyer =%s \t Salary of employer=%f \n Mail ID of employer=%s \t Contact number of employer=%d \n",e[i].name,e[i].salary,e[i].mailid,e[i].contact); } }
/*display name,salary,con no,id of emp*/ #include void main() { struct emp { char name[10]; float salary; int contactnum; int id; }e; printf("\n\t enter name of emp"); scanf("%s",e.name); printf("\n\t enter salary of emp"); scanf("%f",&e.salary); printf("\n\t enter contactnum"); scanf("%d",&e.contactnum); printf("\n\t enter id of emp"); scanf("%d",&e.id); printf("\n\t emp name=%s \n\t emp salary=%f \n\t emp contactnum=%d \n\t emp id=%d", e.name,e.salary,e.contactnum,e.id); }
printf("\n Enter the name of the employee\n"); scanf("%s",b.name);
printf("\n Enter the salary of the employee::\n"); scanf("%f",&b.salary);
printf("\n Enter the mobile no of the employee::\n"); scanf("%d",&b.number);
printf("\n Enter the Email ID of the employee::\n"); scanf("%s",b.email); printf("\n The name of the employee::%s \n The salary of employee::%f ",b.name,b.salary);
printf(" \n Mobile no of employee=%d \n\t Email ID ofemployee=%s" ,b.number,b.email ); }
#include void main() { struct employee { char name[20]; float salary; int id; }e; printf("\n\t enter the name of employee"); scanf("%s",e.name); printf("\n\t enter the salary of employee"); scanf("%f",&e.salary); printf("\n\t enter the id of employee"); scanf("%d",&e.id); printf("\n\t employee name=%s,employee salary=%f,employee id=%d",e.name,e.salary,e.id); }
struct emp { char emp_Name[10]; char emp_mail[10]; int emp_salary; int emp_contactno; } e[10]; int i; for(i=0;i<=9;i++) { printf("\n enter name of emp"); scanf("%s",e[i].emp_Name); printf("\n enter salary of emp"); scanf("%d",&e[i].emp_salary); printf("\n enter mail of emp"); scanf("%s",e[i].emp_mail); printf("\nenter contact no of emp"); scanf("\%d",&e[i].emp_contactno); }
#include void main() { struct Emp { int id; float sal; char name[10]; int cno; }b; printf("Enter the name"); scanf("\n%s",b.name); printf("Enter the Salary"); scanf("\n%f",&b.sal); printf("Enter the id"); scanf("\n%d",&b.id); printf("Enter the contact No"); scanf("\n%d",&b.cno); printf("\nName of Employee=%s\nsalaty of employee=%f\nId of Employee=%d\nContact No:%d\n",b.name,b.sal,b.id,b.cno);
/*Info of employee(structure)*/ #include void main() { struct emp { char name[20]; int salary; int contactno; char id[20]; }e; printf("\n enter name of employee"); scanf("%s",e.name); printf("\n enter salary of employee"); scanf("%d",&e.salary); printf("\n enter contactno of employee"); scanf("%d",&e.contactno); printf("\n enter id of employee"); scanf("%s",e.id); printf("\n\t%s%d%d%s",e.name,e.salary,e.contactno,e.id); }
got first!!only me!!!
ReplyDelete#include
void main()
{
struct employee
{
char n[20],mail[20];
int sal,contact;
}e;
printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t");
scanf("%s%d%d%s",e.n,&e.contact,&e.sal,e.mail);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.n,e.contact,e.sal,e.mail);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char n[20],mail[20];
int sal,contact;
}e;
printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t");
scanf("%s%d%d%s",e.n,&e.contact,&e.sal,e.mail);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.n,e.contact,e.sal,e.mail);
}
#include
Deletevoid main()
{
struct employee
{
char n[20],mail[20];
int sal,contact;
}e;
printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t");
scanf("%s%d%d%s",e.n,&e.contact,&e.sal,e.mail);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.n,e.contact,e.sal,e.mail);
}
/*Display name,salary,contact no,mail id of employee using stucture*/
ReplyDelete#include
void main()
{
struct employee
{
char name[20],mail[20];
int sal,contact;
}e;
printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t");
scanf("%s%d%d%s",e.name,&e.contact,&e.sal,e.mail);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.name,e.contact,e.sal,e.mail);
}
#include
ReplyDeletevoid main()
{
struct emp
{
int salary;
int mbno;
char name[10];
char id[10];
}b;
printf("\n enter the employee name=");
scanf("%s",&b.name);
printf("\n enter contact no of employee=");
scanf("%d",&b.mbno);
printf("\n enter the salary of employee=");
scanf("%d",&b.salary);
printf("\n enter email id of employee=");
scanf("%s",&b.id);
printf("\%s%d%d%s",b.name,b.mbno,b.salary,b.id);
}
#include
ReplyDeletevoid main()
{
struct emp
{
char name[20],mail[20];
float salary;
int mno;
}e;
printf("\nEnter the name of employee,salary,contact no,mail ID of employee:");
scanf("%s%f%d%s",e.name,&e.salary,&e.mno,e.mail);
printf("\nInformation of Employee:\n");
printf("\nName of Employee:%s\nSalary of employee:%f\nContact no of employee:%d\nMail Id Of employee:%s\n",e.name,e.salary,e.mno,e.mail);
}
/* employee display the information*/
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
float salary;
int id;
}e;
printf("\nenter name of employee=");
scanf("%s",e.name);
printf("enter salary of employee=");
scanf("%f",&e.salary);
printf("enter id of employee=");
scanf("%d",&e.id);
printf("\nbook name=%s,\nbook salary=%f,\nbook id=%d",e.name,e.salary,e.id);
}
#include
ReplyDeletevoid main()
{
struct Emp
{
char name[30];
char eid[30];
int mno;
float salary;
}e;
printf("\nEnter the name ,Mail_id,Mobile _no,salary\n");
scanf("%s%s%d%f",e.name,e.eid,&e.mno,&e.salary);
printf("\nInformation of Emp:\n");
printf("\nName=%s\nMail_id=%s\nMobile_no=%d\nSalary=%f\n",e.name,e.eid,e.mno,e.salary);
}
//display information of emplyoee
ReplyDelete#include
void main()
{
struct emp
{
int salary;
int mbno;
char name[10];
char id[10];
}b;
printf("\n enter the employee name=");
scanf("%s",b.name);
printf("\n enter contact no of employee=");
scanf("%d",&b.mbno);
printf("\n enter the salary of employee=");
scanf("%d",&b.salary);
printf("\n enter email id of employee=");
scanf("%s",b.id);
printf("\n%s%d%d%s",b.name,b.mbno,b.salary,b.id);
}
/*Display name,salary,contact no,mail id of employee using stucture*/
ReplyDelete#include
void main()
{
struct employee
{
char name[20],mail[20];
int sal,contact;
}e;
printf("\n\tEnter name,contact no,salary and mail id of employee:\n\t");
scanf("%s%d%d%s",e.name,&e.contact,&e.sal,e.mail);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.CONTACT NO.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.name,e.contact,e.sal,e.mail);
}
#include
ReplyDeletevoid main()
{
struct emp
{
char name[20];
int salary;
int cno;
char id[20];
}x;
printf("\n enter the employee name=");
scanf("%s",&x.name);
printf("\n enter the salary=");
scanf("%d",&x.salary);
printf("\n enter the contact no=");
scanf("%d",&x.cno);
printf("\n enter the email id=");
scanf("%s",&x.id);
printf("\n name=%s",x.name);
printf("\n salary=%d",x.salary);
printf("\n contact no=%d",x.cno);
printf("\n email id=%s",x.id);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[10];
float salary;
int id;
int contactno;
}e;
printf("\n\tEnter the name of employee");
scanf("%s",e.name);
printf("\n\tEnter the salary of employee");
scanf("%f",&e.salary);
printf("\n\tEnter the id of employee");
scanf("%d",&e.id);
printf("\n\tEnter the contactno of employee");
scanf("%d",&e.contactno);
printf("\n\tEmployee Name=%s,Employee salary=%f,Employee id=%d,Contactno=%d",e.name,e.salary,e.id,e.contactno);
}
#include
ReplyDeletevoid main()
{
struct emp
{
char name[20],mail[20];
float salary;
int mno;
}e;
printf("\n\tEnter the name of employee,salary,contact no,mail ID of employee:\n\t");
scanf("%s%f%d%s",e.name,&e.salary,&e.mno,e.mail);
printf("\n\t Employee Info:\n");
printf("\nName of Employee:%s\nSalary of employee:%f\nContact no of employee:%d\nMail Id Of employee:%s\n",e.name,e.salary,e.mno,e.mail);
}
// Using array of structure display details of 10 employe
ReplyDelete#include
void main()
{
int i;
struct employe
{
char name[20];
float salary;
char mailid[30];
int contact;
}e[10];
for(i=0;i<=9;i++)
{
printf("\n Enter name of employe=");
scanf("%s",e[i].name);
printf("\n Enter salary of employe=");
scanf("%f",&e[i].salary);
printf("\n Enter mail id of employe=");
scanf("%s",e[i].mailid);
printf("\n Contact no of employe=");
scanf("%d",&e[i].contact);
}
for(i=0;i<=9;i++)
{
printf(" \n Name of empolyer =%s \t Salary of employer=%f \n Mail ID of employer=%s \t Contact number of employer=%d \n",e[i].name,e[i].salary,e[i].mailid,e[i].contact);
}
}
/*structure of employee*/
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
int mno;
int id;
float salary;
}e;
printf("\n\t enter name");
scanf("%s",e.name);
printf("\n\t enter mno.");
scanf("%d",&e.mno);
printf("\n\t enter id");
scanf("%d",&e.id);
printf("\n\t enter salary");
scanf("%f",&e.salary);
printf("name=%smno=%did=%dsalary=%f",e.name,e.mno,e.id,e.salary);
}
/*display name,salary,con no,id of emp*/
ReplyDelete#include
void main()
{
struct emp
{
char name[10];
float salary;
int contactnum;
int id;
}e;
printf("\n\t enter name of emp");
scanf("%s",e.name);
printf("\n\t enter salary of emp");
scanf("%f",&e.salary);
printf("\n\t enter contactnum");
scanf("%d",&e.contactnum);
printf("\n\t enter id of emp");
scanf("%d",&e.id);
printf("\n\t emp name=%s \n\t emp salary=%f \n\t emp contactnum=%d \n\t emp id=%d",
e.name,e.salary,e.contactnum,e.id);
}
//program of displaying structure of employee
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
float salary;
int number;
char email[15];
}b;
printf("\n Enter the name of the employee\n");
scanf("%s",b.name);
printf("\n Enter the salary of the employee::\n");
scanf("%f",&b.salary);
printf("\n Enter the mobile no of the employee::\n");
scanf("%d",&b.number);
printf("\n Enter the Email ID of the employee::\n");
scanf("%s",b.email);
printf("\n The name of the employee::%s \n The salary of employee::%f ",b.name,b.salary);
printf(" \n Mobile no of employee=%d \n\t Email ID ofemployee=%s" ,b.number,b.email );
}
//Employee strcture
ReplyDelete#include
void main()
{
struct employee
{
char name[10],mailid[10];
float salary;
int conatctno;
}e;
int i;
printf("Enter name\n salary \nconatctno\nmailid");
scanf("\n%s\n%f\n%d\n%s",e.name,&e.salary,&e.conatctno,e.mailid);
printf("nane=%s\nsalary=%f\nconatctno=%d\nmailid=%s",e.name,e.salary,e.conatctno,e.mailid);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[20],mail[20];
int salary,contact;
}p;
printf("\nEmployee name=");
scanf("%s",p.name);
printf("\nsalary=");
scanf("%d",&p.salary);
printf("contact no=");
scanf("%d",&p.contact);
printf("\nenter mail ID=");
scanf("%s",p.mail);
printf("name of Employee=%s\tsalary=%d\n\tcontact no=%d\n\tEmail ID=%s\n",p.name,p.salary,p.contact,p.mail);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[10],mailid[10];
int contact,salary;
}e;
{
printf("\n enter employee name,employee mail id,employee contact,employee salary");
scanf("\n %s%s%d%d",e.name,e.mailid,&e.contact,&e.salary);
printf("\employee name=%s,employee mail id=%s,employee contact=%d,employee salary=%d",e.name,e.mailid,e.contact,e.salary);
}
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[20];
float salary;
int id;
}e;
printf("\n\t enter the name of employee");
scanf("%s",e.name);
printf("\n\t enter the salary of employee");
scanf("%f",&e.salary);
printf("\n\t enter the id of employee");
scanf("%d",&e.id);
printf("\n\t employee name=%s,employee salary=%f,employee id=%d",e.name,e.salary,e.id);
}
/* employee display the information*/
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
float salary;
int id;
}e;
printf("\nenter name of employee=");
scanf("%s",e.name);
printf("enter salary of employee=");
scanf("%f",&e.salary);
printf("enter id of employee=");
scanf("%d",&e.id);
printf("\nbook name=%s,\nbook salary=%f,\nbook id=%d",e.name,e.salary,e.id);
}
/*structure of employee*/
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
int mno;
int id;
float salary;
}e;
printf("\n\t enter name");
scanf("%s",e.name);
printf("\n\t enter mno.");
scanf("%d",&e.mno);
printf("\n\t enter id");
scanf("%d",&e.id);
printf("\n\t enter salary");
scanf("%f",&e.salary);
printf("name=%smno=%did=%dsalary=%f",e.name,e.mno,e.id,e.salary);
}
/*structure of employee*/
ReplyDelete#include
void main()
{
struct employee
{
char name[10];
int mno;
int id;
float salary;
}e;
printf("\n\t enter name");
scanf("%s",e.name);
printf("\n\t enter mno.");
scanf("%d",&e.mno);
printf("\n\t enter id");
scanf("%d",&e.id);
printf("\n\t enter salary");
scanf("%f",&e.salary);
printf("name=%smno=%did=%dsalary=%f",e.name,e.mno,e.id,e.salary);
}
#include
ReplyDeletevoid main()
{
struct emp
{
char emp_name[20];
int emp_id;
float sal;
}e;
printf("\n\tEnter name,Emp_id,salary of employee:\n\t");
scanf("%s%d%f",e.name,&e.emp_id,&e.salary);
printf("\n\tEmployee Details are:\n\t1.NAME=%s \n\t2.EMP_ID.=%d \n\t3.SALARY=%d \n\t4.MAIL ID=%s",e.n,e.contact,e.sal,e.mail);
}
#include
ReplyDeletevoid main()
{
struct emp
{
char emp_Name[10];
char emp_mail[10];
int emp_salary;
int emp_contactno;
}
e[10];
int i;
for(i=0;i<=9;i++)
{
printf("\n enter name of emp");
scanf("%s",e[i].emp_Name);
printf("\n enter salary of emp");
scanf("%d",&e[i].emp_salary);
printf("\n enter mail of emp");
scanf("%s",e[i].emp_mail);
printf("\nenter contact no of emp");
scanf("\%d",&e[i].emp_contactno);
}
for(i=0;i<=9;i++)
{
printf("\n Name=%s,salary=%d,mail=%s,contactno=%d",e[i].emp_Name,e[i].emp_salary,e[i].emp_mail,e[i].emp_contactno);
}
}
#include
ReplyDeletevoid main()
{
struct Emp
{
int id;
float sal;
char name[10];
int cno;
}b;
printf("Enter the name");
scanf("\n%s",b.name);
printf("Enter the Salary");
scanf("\n%f",&b.sal);
printf("Enter the id");
scanf("\n%d",&b.id);
printf("Enter the contact No");
scanf("\n%d",&b.cno);
printf("\nName of Employee=%s\nsalaty of employee=%f\nId of Employee=%d\nContact No:%d\n",b.name,b.sal,b.id,b.cno);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[20],mail[20];
int salary,contact;
}p;
printf("\nEmployee name=");
scanf("%s",p.name);
printf("\nsalary=");
scanf("%d",&p.salary);
printf("contact no=");
scanf("%d",&p.contact);
printf("\nenter mail ID=");
scanf("%s",p.mail);
printf("name of Employee=%s\tsalary=%d\n\tcontact no=%d\n\tEmail ID=%s\n",p.name,p.salary,p.contact,p.mail);
}
/*Info of employee(structure)*/
ReplyDelete#include
void main()
{
struct emp
{
char name[20];
int salary;
int contactno;
char id[20];
}e;
printf("\n enter name of employee");
scanf("%s",e.name);
printf("\n enter salary of employee");
scanf("%d",&e.salary);
printf("\n enter contactno of employee");
scanf("%d",&e.contactno);
printf("\n enter id of employee");
scanf("%s",e.id);
printf("\n\t%s%d%d%s",e.name,e.salary,e.contactno,e.id);
}
#include
ReplyDeletevoid main()
{
struct employee
{
char name[30];
int mob.no.,id;
float salary;
}e;
printf("\n\tenter name \n\tenter mob.no. \n\tenter id \n\tenter salary");
scanf("%s%d%d%f",e.name,&e.mob.no.,&e.id,&e.salary);
printf("\n\tname=%s,\n\tmob.no.=%d,\n\tid=%d,\n\tsalary=%f",e.name,e.mob.no.,e.id,e.salary);
}