i have one question.i got a one assesment and i want to know if my coding is true or not.my assesment is want to calculate salary for 3 person.can you help me to teach or find what are error for my coding?
#include <iostream.h>
void main()
{
char firstname,secondname,thirdname,basicsalary,workingperiod,main_menu;
do
{
cout<<"\nEnter your firstname\n:"<<endl;
cin>>firstname;
cout<<"\nEnter your basicsalary\n:"<<endl;
cin>>basicsalary;
cout<<"\nPlease enter your workingperiod\n:"<<endl;
cin>>workingperiod;
cout<<"\nEnter your secondname\n:"<<endl;
cin>>secondname;
cout<<"\nEnter your basicsalary\n:"<<endl;
cin>>basicsalary;
cout<<"\nPlease enter your workingperiod\n:"<<endl;
cin>>workingperiod;
cout<<"\nEnter your thirdname\n:"<<endl;
cin>>thirdname;
cout<<"\nEnter your basicsalary\n:"<<endl;
cin>>basicsalary;
cout<<"\nPlease enter your workingperiod\n:"<<endl;
cin>>workingperiod;
int workingperiod,name,basicsalary,bonus,newsalary,salary;