Advertisement
Guest User

Untitled

a guest
Jan 20th, 2020
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int x,y,z,a;
  8. cout<<"Pracownik 1 15 lat stazu"<<endl;
  9. cout<<"Pracownik 2 15 lat stazu"<<endl;
  10. cout<<"Pracownik 3 20 lat stazu"<<endl;
  11. cout<<"Pracownik 4 25 lat stazu"<<endl;
  12. cout<<"Pracownik 5 25 lat stazu"<<endl;
  13. cout<<"Pracownik 6 30 lat stazu"<<endl;
  14. cout<<"Pracownik 7 35 lat stazu"<<endl;
  15. cout<<"Pracownik 8 40 lat stazu"<<endl;
  16. cout<<"Pracownik 9 45 lat stazu"<<endl;
  17. cout<<"Pracownik 10 45 lat stazu"<<endl;
  18.  
  19.  
  20.  
  21.  
  22.  
  23. x=20;
  24. cout << "Podaj liczbe przepracowanych godzin w miesiacu" << endl;
  25. cin>>y;
  26. if(y>160)
  27. {
  28. z=(x*2);
  29. }
  30. else
  31. {
  32. if(y<=160)
  33. z=0;
  34.  
  35.  
  36. }
  37.  
  38. a=(x*y)+z;
  39. cout<<"Twoja stawka to "<<a<<endl;
  40. return 0;
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement