Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- float x, y, z;
- int main()
- {
- cout << "wprowadz dlugosci 3 odcinkow" << endl;
- cin >> x >> y >> z;
- if (x<y+z && y<x+z && z<x+y) cout << "obwod trojkata wynosi: " << x+y+z << endl;
- else cout << "nie da sie stworzyc trojkata" << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment