Subscribe For Free Updates!

We'll not spam mate! We promise.

Wednesday 14 August 2013

Displaying designations of employees code in C++


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;
}

Socializer Widget By CodingLovers
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment