Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. #include <iostream>
  2. #include <cmath>
  3. #include <iomanip>
  4.  
  5. int main() {
  6.  
  7. std::cout << "Unesite stranice trougla: " << std::endl;
  8.  
  9. double a, b, c;
  10. std::cin >> a >> b >> c;
  11.  
  12. if (a > 0 && b > 0 && c > 0 && a + b > c && a + c > b && b + c > a) std::cout << "Ove stranice mogu formirati trougao" << std::endl;
  13. else std::cout << "Ove stranice ne mogu formirati trougao" << std::endl;
  14.  
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement