Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstdlib>
- using namespace std ;
- int main ()
- {
- cout<<"podaj wartosc ograniczenia predkosci" ;
- int a;
- cin>>a ;
- cout<<"podaj wartosc predkosci z jaka jechales";
- int b;
- cin>>b;
- int c=b-a ;
- if (c<=0)
- cout<< "Nie ma mandatu, mozesz jechac dalej" ;
- if (c<=10)
- cout<< "Twoj mandat wynosi 100 PLN" ;
- if (c<=30)
- cout<<"Twoj mandat wynosi 200 PLN" ;
- if (c<=60)
- cout<<"Twoj mandat wynosi 400 PLN" ;
- else
- cout<<"Zgnijesz w Sztumie" ;
- getch ()
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement