Full course of c++ programming language Click here > C++ programming language Q-1 [A] Write a c program to create structure of employee with members Empid, EmpName, Qualification and EmpSalary by taking input of 5 employees display the employee whose qualification is "MBA" and salary greater than 20000 . #include <stdio.h> #include <conio.h> #include <string.h> struct Employee { int Empid, EmpSalary; char EmpName[50]; char Qualification[50]; }; Void main() { struct Employee emp[5]; int i; for (i = 0; i < 5; i++) { printf("Enter employee ID: "); scanf("%d", &emp[i].Empid); printf("Enter employee name: "); scanf("%s", emp[i].EmpName); printf("Enter employee qualification: "); scanf("%s", emp[i].Quali...
Comments
Post a Comment