Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float a;
- float b;
- float c;
- cout << "Podaj bok a: ";
- cin >> a;
- cout << "Podaj bok b: ";
- cin >> b;
- cout << "Podaj bok c: ";
- cin >> c;
- if(a*a + b*b == c*c)
- {
- cout << "Trojkat jest prostokatny" << endl;
- }
- else if(a*a + c*c == b*b)
- {
- cout << "Trojkat jest prostokatny" << endl;
- }
- return 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement