Welcome, guest! Login / Register - Why register?
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 Nicklaus ( 5 years ago )
#include <iostream>
#include <cmath>

using namespace std;

int main()
{
    int a,b, c;
    cout<<"Masukan S1: ";
    cin>>a;
    cout<<"Masukan S2: ";
    cin>>b;
    cout<<"Masukan S3: ";
    cin>>c;
    cout<<"Output : ";
    if(a>=b+c){
        cout<<"tidak ada segitiga yang terbentuk";
    } else if(pow(a,2)==pow(b,2)+pow(c,2)){
            cout<<"Segitiga Siku-Siku";
            } else if(pow(a,2)>pow(b,2)+pow(c,2)){
            cout<<"Segitiga Tumpul";
                    } else if(pow(a,2)<pow(b,2)+ pow(c,2)){
                        cout<<"Segitiga Lancip";
                        }
    return 0;
}

 

Revise this Paste

Children: 119612
Your Name: Code Language: