Computer Science, asked by jack56991, 10 months ago

Write a C++ program to accept the name, age,and salary of 10 employees ?

Answers

Answered by Tejas1582
2

Answer:

#include <upstream.h>

#include <conio.h>

class employees {

public:

char name [20];

int name ; float sal;

} A[20];

void main() {

clrscr();

for ( int i=0 ; i<20 ; i++) {

cin >> A[i].Name >> A[i].Sal >> A[i].name ;

}

getch();

}

Similar questions