Advertisement
Guest User

Untitled

a guest
Feb 26th, 2020
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream> //standartinis irankis
  2. using namespace std;
  3. void Ivedimas(int &x, string txt);
  4. bool Tikrinam(int x1, int x2, int x3);
  5. int main()
  6. {
  7. int a, b, c;
  8. bool arATinka, arBTinka, arCTinka;
  9. Ivedimas(a, "a= ");
  10. Ivedimas(b, "b= ");
  11. Ivedimas(c, "c= ");
  12. arATinka = Tikrinam(a, b, c);
  13. arBTinka = Tikrinam(b, a, c);
  14. arCTinka = Tikrinam(c, b, a);
  15.  
  16. return 0;
  17. }
  18.  
  19. void Ivedimas(int &x, string txt)
  20. {
  21. cout<<txt;
  22. cin>>x;
  23. }
  24.  
  25. bool Tikrinam(int x1, int x2, int x3)
  26. {
  27. bool tinka;
  28. tinka=x1 < x2 + x3;
  29. return tinka;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement