Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /******************************************************************************
- Online C++ Compiler.
- Code, Compile, Run and Debug C++ program online.
- Write your code in this editor and press "Run" button to compile and execute it.
- *******************************************************************************/
- using namespace std;
- #include <iostream>
- int main()
- {
- int age;
- int years_before_driving;
- int driver_licence_age;
- cout << "wprowadź minimalny wiek do uzyskania prawa jazdy w twoim kraju";
- cin >> driver_licence_age;
- cout << "Ile masz lat?";
- cin >> age;
- years_before_driving = driver_licence_age - age;
- if (age >= driver_licence_age)
- cout << "Możesz otrzymać prawo jazdy";
- if (age < driver_licence_age)
- cout << "nie możesz jeszcze jeździć przez " << years_before_driving << " lat";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement