Facebook
From Cobalt Mosquito, 3 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 84
  1. #include <iostream>
  2. using namespace::std;
  3. int main()
  4. {
  5.         double s;
  6.         cout << "Ile masz stazu gosciu : ";
  7.         cin >> s;
  8.         if (s<=3)
  9.         {
  10.                 cout<< "twoja wyplata wynosi" << 1600+130*s << "zlotych";
  11.                
  12.         }
  13.         else
  14.         {
  15.                 cout << "twoja wyplata wynosi" << 2500+100*s << "zlotych";
  16.  
  17.         }
  18. }