Facebook
From Cygan, 6 Years ago, written in C++.
Embed
Download Paste or View Raw
Hits: 662
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     cout << "Podaj ilosc plyt" << endl;
  8.     int i = 0, cenaf;
  9.     cin >> i;
  10.     if (i>0)
  11.     {
  12.         if (i<5) cenaf=(i*15);
  13.         else if (i>=5) cenaf=(60+((i-4)*10));
  14.         cout<<"cena wynosi: "<< cenaf;
  15.     }
  16.     else cout<<"podano nieprawidlowa wartosc"<<endl;
  17.     return 0;
  18. }
  19.  

Replies to c++ rss

Title Name Language When
Re: c++ Sweet Pelican cpp 2 Years ago.
Re: c++ Capacious Monkey cpp 3 Years ago.
fat FAT cpp 3 Years ago.
Re: c++ Diminutive Cat cpp 3 Years ago.
Re: c++ Chunky Crocodile cpp 3 Years ago.
Re: c++ Anorexic Horse cpp 5 Years ago.