• Source
    1. program laturile_unui_triunghi;
    2. var a,b,c, ok : integer;
    3. // Introduceti 3 numere (separate de Enter sau Blank)
    4. begin
    5. readln(a,b,c);
    6. ok:=1;
    7. if a+b < c then ok:=0;
    8. if a+c < b then ok:=0;
    9. if b+c < a then ok:=0;
    10. // Daca ok=1 atunci avem triunghi cu laturi a,b,c
    11. if ok=1 then writeln ('Avem triunghi')
    12. else writeln ('Nu avem triunghi');
    13. end.