Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int x,y,z,a;
- cout<<"Pracownik 1 15 lat stazu"<<endl;
- cout<<"Pracownik 2 15 lat stazu"<<endl;
- cout<<"Pracownik 3 20 lat stazu"<<endl;
- cout<<"Pracownik 4 25 lat stazu"<<endl;
- cout<<"Pracownik 5 25 lat stazu"<<endl;
- cout<<"Pracownik 6 30 lat stazu"<<endl;
- cout<<"Pracownik 7 35 lat stazu"<<endl;
- cout<<"Pracownik 8 40 lat stazu"<<endl;
- cout<<"Pracownik 9 45 lat stazu"<<endl;
- cout<<"Pracownik 10 45 lat stazu"<<endl;
- x=20;
- cout << "Podaj liczbe przepracowanych godzin w miesiacu" << endl;
- cin>>y;
- if(y>160)
- {
- z=(x*2);
- }
- else
- {
- if(y<=160)
- z=0;
- }
- a=(x*y)+z;
- cout<<"Twoja stawka to "<<a<<endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement