20. Display name,salary,conatct no, mail id of employee using structure.


Comments

  1. Mubin Pirjade8:53 AM

    got first!!only me!!!
    #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);
    }

    ReplyDelete
  2. Akshay Sidwadkar8:58 AM

    #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);
    }

    ReplyDelete
    Replies
    1. mayuri magar10:28 AM

      #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);
      }

      Delete
  3. Swati Waghmare10:18 AM

    /*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);
    }

    ReplyDelete
  4. Radha Ghadge SE 2310:28 AM

    #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("\%s%d%d%s",b.name,b.mbno,b.salary,b.id);
    }

    ReplyDelete
  5. lengarepooja4:14 PM

    #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);
    }

    ReplyDelete
  6. /* employee display the information*/
    #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);
    }

    ReplyDelete
  7. #include
    void 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);
    }

    ReplyDelete
  8. Dipali Kore1:18 PM

    //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);

    printf("\n%s%d%d%s",b.name,b.mbno,b.salary,b.id);
    }

    ReplyDelete
  9. Sayali Daunde1:21 PM

    /*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);
    }

    ReplyDelete
  10. Radha Ghadge SE 231:23 PM

    #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);

    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);
    }

    ReplyDelete
  11. sanjivani atakare4:43 PM

    #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);


    printf("\n\tEmployee Name=%s,Employee salary=%f,Employee id=%d,Contactno=%d",e.name,e.salary,e.id,e.contactno);
    }

    ReplyDelete
  12. Pallavi Bagal5:18 PM

    #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);
    }

    ReplyDelete
  13. // 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);
    }
    }

    ReplyDelete
  14. Bhanvase Yashoda11:46 AM

    /*structure of employee*/
    #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);

    }

    ReplyDelete
  15. poonam pusavale11:53 AM

    /*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);
    }

    ReplyDelete
  16. Bhosale Dhanashri SE311:53 AM

    //program of displaying structure of employee



    #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 );
    }






    ReplyDelete
  17. sushma jadhav12:04 PM

    //Employee strcture
    #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);

    }

    ReplyDelete
  18. #include
    void 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);
    }

    ReplyDelete
  19. sonali nagane12:29 PM

    #include
    void 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);
    }
    }

    ReplyDelete
  20. puja khandare12:30 PM

    #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);
    }

    ReplyDelete
  21. sushmita swami9:16 AM

    /* employee display the information*/
    #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);
    }

    ReplyDelete
  22. /*structure of employee*/
    #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);

    }

    ReplyDelete
  23. Bhanvase Yashoda9:39 AM

    /*structure of employee*/
    #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);

    }

    ReplyDelete
  24. #include
    void 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);
    }

    ReplyDelete
  25. rajashree bhosale SE445:04 PM

    #include
    void 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);
    }
    }

    ReplyDelete
  26. madhu pujari5:17 PM

    #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);

    }

    ReplyDelete
  27. Ranjit kalubarme11:59 AM

    #include
    void 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);
    }

    ReplyDelete
  28. Awate Snehal10:58 AM

    /*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);
    }

    ReplyDelete
  29. sachita jadhav11:35 AM

    #include
    void 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);
    }

    ReplyDelete

Post a Comment