Advertisement
ignacy123

prawo_jazdy

Oct 7th, 2024 (edited)
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. https://drive.google.com/drive/folders/1nHx0QttiPSZFCGeg4zglqkwdEDTXOrLB?fbclid=IwZXh0bgNhZW0CMTEAYnJpZBEweFRBRlYxbzFhM2M5bmJrRgEe040sXwUXGNDvxwcE8i8BhzOwDQfH4vMG99vyUxV0VVYeCoL64tyAy0mNznw_aem_rirABJ9VlV2uZ0d9kgmFCA
  2.  
  3. https://youtube.com/shorts/833MKSPFcdQ?si=4oyPBsXugLZDooDF
  4.  
  5. /******************************************************************************
  6.  
  7. Online C++ Compiler.
  8. Code, Compile, Run and Debug C++ program online.
  9. Write your code in this editor and press "Run" button to compile and execute it.
  10.  
  11. *******************************************************************************/
  12.  
  13.  
  14.  
  15.  
  16.  
  17. using namespace std;
  18.  
  19. #include <iostream>
  20.  
  21. int main()
  22. {
  23. int age;
  24. int years_before_driving;
  25. int driver_licence_age;
  26.  
  27. cout << "wprowadź minimalny wiek do uzyskania prawa jazdy w twoim kraju";
  28.  
  29. cin >> driver_licence_age;
  30.  
  31. cout << "Ile masz lat?";
  32.  
  33. cin >> age;
  34.  
  35. years_before_driving = driver_licence_age - age;
  36.  
  37. if (age >= driver_licence_age)
  38. cout << "Możesz otrzymać prawo jazdy";
  39. if (age < driver_licence_age)
  40. cout << "nie możesz jeszcze jeździć przez " << years_before_driving << " lat";
  41.  
  42. return 0;
  43. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement