Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- https://drive.google.com/drive/folders/1nHx0QttiPSZFCGeg4zglqkwdEDTXOrLB?fbclid=IwZXh0bgNhZW0CMTEAYnJpZBEweFRBRlYxbzFhM2M5bmJrRgEe040sXwUXGNDvxwcE8i8BhzOwDQfH4vMG99vyUxV0VVYeCoL64tyAy0mNznw_aem_rirABJ9VlV2uZ0d9kgmFCA
- https://youtube.com/shorts/833MKSPFcdQ?si=4oyPBsXugLZDooDF
- /******************************************************************************
- 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