Write a C++ program to create a structure called employee with name, employee id, name, age designation and salary as data members. Accept employee details and display it.
SAMPLE INPUT & OUTPUT:
Enter name:
Rajarajan
Enter ID:
001
Enter age:
24
Enter designation:
Manager
Enter Salary:
20000
Employee Details
Name of the Employee : Rajarajan
ID of the Employee : 1
Age of the Employee : 24
Designation of the Employee : Manager
Salary of the Employee : 20000.00
Answers
Answered by
4
Answer:
Explanation:
Hey, I am writing a C++ program for your question. Hope it helps you.Program is as under:-#include<iostream.h>#include<conio.h>#include<process.h>void main(){ clrscr(); char y,n,choice,name[100]; int age; A: cout<<"Enter the name of the employee"<<endl; cin>>name; cout<<"Enter the age of the employee"<<endl; cin>>age; cout<<"The name of the employee is "<<name<<endl; cout<<"The age of the employee is "<<age<<endl; cout<<"Do you want to enter a new entry (y/n) ?"<<endl; cin>>choice; if(choice=='y') { goto A; } if(choice=='n') { exit(0); } getch();}
SORRY BUT CANT GIVE THE SPACE..
HOPE IT HELPS AND MARK ME AS BRAINLIEST
Answered by
14
Similar questions