Advertisement
drakon-firestone

Untitled

Oct 9th, 2024
10
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. float a;
  2. float b;
  3. float c;
  4.  
  5. cout << "Podaj bok a: ";
  6. cin >> a;
  7. cout << "Podaj bok b: ";
  8. cin >> b;
  9. cout << "Podaj bok c: ";
  10. cin >> c;
  11.  
  12. if(a*a + b*b == c*c)
  13. {
  14. cout << "Trojkat jest prostokatny" << endl;
  15. }
  16. else if(a*a + c*c == b*b)
  17. {
  18. cout << "Trojkat jest prostokatny" << endl;
  19. }
  20.  
  21.  
  22. return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement