User enter salary of an employee and program check it while the employee is Lower Staff, Officer or Exeuctive Staff.
#include<iostream.h>
#include<conio.h>
int main()
{
clrscr();
long int salary;
cout<<"\nEnter salary of employee: ";
cin>>salary;
if(salary<10000)
cout<<"\nLower Staff!";
else if(salary>=10000 && salary<30000)
cout<<"\nOfficer!";
else if(salary>=50000)
cout<<"\nExcutive level!";
else
cout<<"\nInvlaid option!!";
getch();
return 0;
}
0 comments:
Post a Comment