Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- float n,k;
- cout << "Podaj wielkosc nakladu: " << endl;
- cin >> n;
- k=0;
- if (n<0)
- {
- cout << "Podano nieprawidlowa wielkosc nakladu, ktora nie moze byc mniejsza niz 0.";
- }
- else if (n<500)
- {
- k=15;
- cout << "Koszt wydruku wynosi " << k*n << " zl dla nakladu " << n;
- }
- if (n>=500 && n<=1000)
- {
- k=12;
- cout << "Koszt wydruku wynosi " << k*n << " zl dla nakladu " << n;
- }
- if (n>1000)
- {
- k=10;
- cout << "Koszt wydruku wynosi " << k*n << " zl dla nakladu " << n;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment