Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by Melvin ( 5 years ago )
int s1, s2, s3, a, b, c;
cout << "Masukkan S1 : ";
cin >> s1;
cout << "Masukkan S2 : ";
cin >> s2;
cout << "Masukkan S3 : ";
cin >> s3;
if (s1 > s2 && s1 > s3) {
a = s1;
b = s2;
c = s3;
}
else if (s2 > s1 && s2 > s3) {
a = s2;
b = s1;
c = s3;
}
else if (s3 > s2 && s3 > s1) {
a = s3;
b = s2;
c = s1;
}
if (a * a == b * b + c * c) {
cout << "Segitiga Siku-Siku";
}
else if (a * a > b * b + c * c) {
cout << "Segitiga Tumpul";
}
else if (a * a < b * b + c * c) {
cout << "Segitiga Lancip";
}
Revise this Paste